This commit is contained in:
BoHung Chiu 2021-07-12 16:28:38 +08:00
parent 9b27687718
commit 2685e6fdea
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ class Admin::ArchiveFilesController < OrbitAdminController
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})
end
end
end rescue nil
@archive_file = ArchiveFile.find(params[:id])
@archive_file.update_user_id = current_user.id