This commit is contained in:
sw 2014-10-24 09:48:07 +08:00
commit b732944a2a
1 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,8 @@ class AttachmentsController < ApplicationController
}
format.api
end
rescue Encoding::InvalidByteSequenceError => e
render :action => 'file'
end
def download