2012-02-16 91 views
0

您好在除IE以外的所有其他瀏覽器與回形針工作集成。我能弄清楚問題在哪裏。回形針+ IE - 文件無法上傳

下面是工作和不工作

工作(火狐)的日誌

Started POST "/submit" for 192.168.2.4 at 2012-02-16 08:13:21 +0800 
    Processing by HomeController#submit as HTML 
    Parameters: {"utf8"=>"✓", "authenticity_token"=>"xTBkKxA43DB1BNaGVY0Y2+95f9wuJHHkflJEaWRmURw=", "entry"=>{"user_id"=>"1", "photo"=>#<ActionDispatch::Http::UploadedFile:0x007fb5903e08d0 @original_filename="Screen Shot 2012-02-14 at 9.52.25 AM.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"entry[photo]\"; filename=\"Screen Shot 2012-02-14 at 9.52.25 AM.png\"\r\nContent-Type: image/png\r\n", @tempfile=#<File:/var/folders/5z/v8ld__9x4w97w0j28zc9dtyh0000gn/T/RackMultipart20120216-3442-18qvmga>>, "your_name"=>"test", "email"=>"[email protected]", "their_name"=>"name, name2", "story"=>"test test"}} 
    User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`active` = 1 AND `users`.`id` = 1 AND `users`.`facebook_id` = '72XXXXX21' LIMIT 1 
    CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`active` = 1 AND `users`.`id` = 1 AND `users`.`facebook_id` = '72XXXXX21' LIMIT 1 
Command :: identify -format %wx%h '/var/folders/5z/v8ld__9x4w97w0j28zc9dtyh0000gn/T/stream20120216-3442-1fnstu2.png[0]' 
Command :: convert '/var/folders/5z/v8ld__9x4w97w0j28zc9dtyh0000gn/T/stream20120216-3442-1fnstu2.png[0]' -resize "350x350>" '/var/folders/5z/v8ld__9x4w97w0j28zc9dtyh0000gn/T/stream20120216-3442-1fnstu220120216-3442-uow6r1' 
Command :: identify -format %wx%h '/var/folders/5z/v8ld__9x4w97w0j28zc9dtyh0000gn/T/stream20120216-3442-1fnstu2.png[0]' 
Command :: convert '/var/folders/5z/v8ld__9x4w97w0j28zc9dtyh0000gn/T/stream20120216-3442-1fnstu2.png[0]' -resize "110x110>" '/var/folders/5z/v8ld__9x4w97w0j28zc9dtyh0000gn/T/stream20120216-3442-1fnstu220120216-3442-yqy983' 
    (0.2ms) BEGIN 
    SQL (0.3ms) INSERT INTO `entries` (`created_at`, `email`, `isapproved`, `photo_content_type`, `photo_file_name`, `photo_file_size`, `photo_updated_at`, `story`, `their_name`, `updated_at`, `user_id`, `your_name`) VALUES ('2012-02-16 00:13:22', 'zeya.min[email protected]', 0, 'image/png', 'Screen_Shot_2012-02-14_at_9.52.25_AM.png', 354645, '2012-02-16 00:13:22', 'test test', 'name, name2', '2012-02-16 00:13:22', 1, 'Zeya Phyo') 
[paperclip] Saving attachments. 
[paperclip] saving /Volumes/z/projectx/github/xxx/public/system/photos/21/original/Screen_Shot_2012-02-14_at_9.52.25_AM.png 
[paperclip] saving /Volumes/z/projectx/github/xxx/public/system/photos/21/medium/Screen_Shot_2012-02-14_at_9.52.25_AM.png 
[paperclip] saving /Volumes/z/projectx/github/xxx/public/system/photos/21/thumb/Screen_Shot_2012-02-14_at_9.52.25_AM.png 
    (0.8ms) COMMIT 
    (0.1ms) BEGIN 
[paperclip] Saving attachments. 
    (0.1ms) COMMIT 

無法正常工作(IE 8)

Started POST "/submit" for 192.168.2.2 at 2012-02-16 08:21:27 +0800 
    Processing by HomeController#submit as HTML 
    Parameters: {"utf8"=>"✓", "authenticity_token"=>"FZbjiwA49hq/dNYNBvWww9+R1mmF64ZcdogWkTOWF4c=", "entry"=>{"user_id"=>"1", "photo"=>#<ActionDispatch::Http::UploadedFile:0x007fb591a0b510 @original_filename="z_14373-03.jpg", @content_type="image/pjpeg", @headers="Content-Disposition: form-data; name=\"entry[photo]\"; filename=\"z_14373-03.jpg\"\r\nContent-Type: image/pjpeg\r\n", @tempfile=#<File:/var/folders/5z/v8ld__9x4w97w0j28zc9dtyh0000gn/T/RackMultipart20120216-3442-coacoc>>, "your_name"=>"abc", "email"=>"[email protected]", "their_name"=>"diamond", "story"=>"cos it last ....."}} 
    User Load (0.8ms) SELECT `users`.* FROM `users` WHERE `users`.`active` = 1 AND `users`.`id` = 1 AND `users`.`facebook_id` = '720xxx21' LIMIT 1 
    CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`active` = 1 AND `users`.`id` = 1 AND `users`.`facebook_id` = '720xxx21' LIMIT 1 
Command :: identify -format %wx%h '/var/folders/5z/v8ld__9x4w97w0j28zc9dtyh0000gn/T/stream20120216-3442-1hjayq.jpg[0]' 
Command :: convert '/var/folders/5z/v8ld__9x4w97w0j28zc9dtyh0000gn/T/stream20120216-3442-1hjayq.jpg[0]' -resize "350x350>" '/var/folders/5z/v8ld__9x4w97w0j28zc9dtyh0000gn/T/stream20120216-3442-1hjayq20120216-3442-qojdnh' 
Command :: identify -format %wx%h '/var/folders/5z/v8ld__9x4w97w0j28zc9dtyh0000gn/T/stream20120216-3442-1hjayq.jpg[0]' 
Command :: convert '/var/folders/5z/v8ld__9x4w97w0j28zc9dtyh0000gn/T/stream20120216-3442-1hjayq.jpg[0]' -resize "110x110>" '/var/folders/5z/v8ld__9x4w97w0j28zc9dtyh0000gn/T/stream20120216-3442-1hjayq20120216-3442-1yal5cg' 
    (0.2ms) BEGIN 
    (0.1ms) ROLLBACK 
    (0.1ms) BEGIN 
    (0.1ms) ROLLBACK 

回答

0

內容類型通過發送通過IE 8似乎是不同的'pjpeg'

我會檢查您的驗證,並確保您沒有驗證可能會拒絕此特定類型,或專門添加它。

因爲它回滾了,我想這是一個模型驗證問題,導致它打破。