jeb
읽지 않음,2012. 6. 7. 오전 4:26:5212. 6. 7.작성자에게 답장하려면 로그인하세요.
전달하려면 로그인하세요.
이 그룹의 메시지를 삭제할 권한이 없습니다.
메시지를 신고하려면 로그인하세요.
그룹의 이메일 주소가 익명이거나 원본 메시지를 보려면 회원 이메일 주소 보기 권한이 필요합니다.
받는사람 Paperclip Plugin, jo...@jebkb.se
Hi,
I'm using paperclip to handle large files. It works well for file
sizes up to about 15 MB. If the image is larger the image is uploaded
and resampled to thumbnail in the /tmp folder, but not saved at its
location when resampled. It's not a time out issue, I made the upload
from the production server and got the same result.
Rails 3.2.2, Ruby 1.9.2, OS X, Paperclip 2.7.0, Apache and passenger
on OS X Server
Does anyone know what might be the problem?
Log from large file fail:
Started POST "/media_objects" for 92.33.15.10 at 2012-06-06 07:39:42
+0200
Processing by MediaObjectsController#create as HTML
Parameters: {"utf8"=>"✓",
"authenticity_token"=>"fYx4gItna1s4zRlr6BdZHOqSz9Hm/VnKON1kCyiyM78=",
"media_object"=>{"name"=>"Baldessarini RX våren 2012", "active"=>"1",
"media_type"=>"0", "campaign_id"=>"", "start_date"=>"2012-06-06",
"end_date"=>"2013-06-06", "condition_id"=>"", "acces_level"=>"0",
"start_page"=>"1", "description"=>"", "synonyms"=>"",
"multiple_0"=>"4", "multiple_1"=>"9", "single_0"=>"0",
"single_1"=>"0", "single_2"=>"0", "customer_id"=>"1",
"image_files_attributes"=>{"0"=>{"name"=>"bild", "description"=>"",
"media_type"=>"0", "condition_id"=>"", "add_size"=>"",
"the_image"=>#<ActionDispatch::Http::UploadedFile:0x0000010aa567d8
@original_filename="Baldessarini_RX_våren_2012.jpg",
@content_type="image/jpeg", @headers="Content-Disposition: form-data;
name=\"media_object[image_files_attributes][0][the_image]\"; filename=
\"Baldessarini_RX_v\xC3\xA5ren_2012.jpg\"\r\nContent-Type: image/jpeg\r
\n", @tempfile=#<File:/tmp/RackMultipart20120606-66156-1op9k9e>>}}},
"commit"=>"Spara"}
[32mCommand [0m :: identify -format %wx%h '/tmp/
Baldessarini_RX_våren_201220120606-66156-18df0qp.jpg[0]'
[32mCommand [0m :: convert '/tmp/
Baldessarini_RX_våren_201220120606-66156-18df0qp.jpg[0]' -resize
"40x20>" '/tmp/
Baldessarini_RX_våren_201220120606-66156-18df0qp20120606-66156-146hurd'
[32mCommand [0m :: identify -format %wx%h '/tmp/
Baldessarini_RX_våren_201220120606-66156-18df0qp.jpg[0]'
[32mCommand [0m :: convert '/tmp/
Baldessarini_RX_våren_201220120606-66156-18df0qp.jpg[0]' -resize
"100x80>" '/tmp/
Baldessarini_RX_våren_201220120606-66156-18df0qp20120606-66156-1bal3nb'
[32mCommand [0m :: identify -format %wx%h '/tmp/
Baldessarini_RX_våren_201220120606-66156-18df0qp.jpg[0]'
[32mCommand [0m :: convert '/tmp/
Baldessarini_RX_våren_201220120606-66156-18df0qp.jpg[0]' -resize
"150x120>" '/tmp/
Baldessarini_RX_våren_201220120606-66156-18df0qp20120606-66156-l7y29e'
[32mCommand [0m :: identify -format %wx%h '/tmp/
Baldessarini_RX_våren_201220120606-66156-18df0qp.jpg[0]'
[32mCommand [0m :: convert '/tmp/
Baldessarini_RX_våren_201220120606-66156-18df0qp.jpg[0]' -resize
"250x190>" '/tmp/
Baldessarini_RX_våren_201220120606-66156-18df0qp20120606-66156-z4vhgp'
[32mCommand [0m :: identify -format %wx%h '/tmp/
Baldessarini_RX_våren_201220120606-66156-18df0qp.jpg[0]'
[32mCommand [0m :: convert '/tmp/
Baldessarini_RX_våren_201220120606-66156-18df0qp.jpg[0]' -resize
"400x400>" '/tmp/
Baldessarini_RX_våren_201220120606-66156-18df0qp20120606-66156-wimo9l'
[32mCommand [0m :: identify -format %wx%h '/Volumes/www5_raid/
WebServer/RoR_siter/ibizmedia/releases/20120606053617/public/system/
images/the_image//original/Baldessarini_RX_våren_2012.jpg[0]'
Rendered media_objects/_form.html.erb (190.1ms)
Rendered media_objects/new.html.erb within layouts/application
(230.7ms)
Completed 500 Internal Server Error in 13248ms