Fix bug.
This commit is contained in:
parent
9b27687718
commit
2685e6fdea
|
@ -111,7 +111,7 @@ class Admin::ArchiveFilesController < OrbitAdminController
|
||||||
tempfile.write(file_content_info["content"].unpack('U*').map{|i| i.chr }.join)
|
tempfile.write(file_content_info["content"].unpack('U*').map{|i| i.chr }.join)
|
||||||
v["file"] = ActionDispatch::Http::UploadedFile.new({:filename=>filename,:type=>content_type,:head=>head,:tempfile=>tempfile})
|
v["file"] = ActionDispatch::Http::UploadedFile.new({:filename=>filename,:type=>content_type,:head=>head,:tempfile=>tempfile})
|
||||||
end
|
end
|
||||||
end
|
end rescue nil
|
||||||
@archive_file = ArchiveFile.find(params[:id])
|
@archive_file = ArchiveFile.find(params[:id])
|
||||||
|
|
||||||
@archive_file.update_user_id = current_user.id
|
@archive_file.update_user_id = current_user.id
|
||||||
|
|
Loading…
Reference in New Issue