paperclip-qiniu
paperclip-qiniu copied to clipboard
the temp file in /tmp directory not cleaned after upload
Started POST "/images" for 127.0.0.1 at 2014-04-28 11:10:21 +0800 Processing by ImagesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"ELKBYPp06dqTqJUcBL93QGA/W+AWnQ7zsSUb+sIEjuk=", "image"=>{"file"=>#<ActionDispatch::Http::UploadedFile:0x007f107454cb68 @original_filename="zhangsan.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name="image[file]"; filename="zhangsan.jpg"\r\nContent-Type: image/jpeg\r\n", @tempfile=#Tempfile:/tmp/RackMultipart20140428-19491-pm19sw>}, "commit"=>"Create Image"} Command :: file -b --mime-type '/tmp/50cf7f75d6a172b7137d26fc1d5eda2120140428-19491-14r0344' Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/cfcfe1130695d7de9a50370b6458a29920140428-19491-16wmx2e[0]' 2>/dev/null (0.3ms) begin transaction Command :: file -b --mime-type '/tmp/90b3ea290d1410dc490fdd675ec998b620140428-19491-4ogyd7'
why me uploaded file to produce multiple file in local?
@clarkyi 1. how to reproduce your bug? 2. what do you expect? 3. what do you see?
thanks
@lidaobing 谢谢你的回答. 我运行这个项目: https://github.com/lidaobing/paperclip-qiniu-example 发现上传完成以后在/tmp目录下存在多个文件.
@clarkyi thanks, I changed the title to make it clear