头像上传时等待三秒(确保文件上传完成)
This commit is contained in:
parent
dfaab07455
commit
b87ac32bd5
|
@ -66,7 +66,7 @@ class AvatarController < ApplicationController
|
|||
end
|
||||
|
||||
if @source_type == 'Contest'
|
||||
Trustie::Utils::Image.new(diskfile,true).compress(600)
|
||||
Trustie::Utils::Image.new(diskfile,true).compress(900)
|
||||
else
|
||||
Trustie::Utils::Image.new(diskfile,true).compress(300)
|
||||
end
|
||||
|
@ -79,6 +79,8 @@ class AvatarController < ApplicationController
|
|||
end
|
||||
@temp_file = nil
|
||||
|
||||
sleep(3)
|
||||
|
||||
# while !File.readable?(diskfile)
|
||||
# logger.info("###############################################################sleep")
|
||||
# sleep(0.5)
|
||||
|
|
Loading…
Reference in New Issue