이미지 업로드 관련 문의드립니다.
박 대원이(가) 2014-01-16에 추가
안녕하세요.
레드마인에 CKEdtior 플러그인 설치해서 사용하려고 있는데요.
이미지를 업로드하면 이미지 파일에 따라서 정상적으로 업로드 될 때가 있고,
어떤 파일은 이미지가 깨져서 업로드가 되네요.
도움 부탁드립니다.
로그에는 다음과 같이 나오네요.
Started GET "/redmine/rich/files/?CKEditor=issue_description&CKEditorFuncNum=2&default_style=original&allowed_styles=thumb%2Crich_thumb%2Coriginal&insert_many=false&type=image&scoped=true&scope_type=Project&scope_id=1&viewMode=grid" for 70.7.41.68 at 2014-01-16 11:25:34 +0900
Processing by Rich::FilesController#index as HTML
Parameters: {"CKEditor"=>"issue_description", "CKEditorFuncNum"=>"2", "default_style"=>"original", "allowed_styles"=>"thumb,rich_thumb,original", "insert_many"=>"false", "type"=>"image", "scoped"=>"true", "scope_type"=>"Project", "scope_id"=>"1", "viewMode"=>"grid"}
Current user: redmineadmin (id=1)
Rendered plugins/redmine_ckeditor/app/views/rich/files/_file.html.erb (0.0ms)
Rendered C:/BitNami/redmine-2.3.2-1/ruby/lib/ruby/gems/1.9.1/gems/rich-1.4.6/app/views/rich/files/index.html.erb within layouts/rich/application (0.0ms)
Completed 200 OK in 78ms (Views: 78.0ms | ActiveRecord: 0.0ms)
Started POST "/redmine/rich/files?authenticity_token=Uq%2BO5l37uYZmhMnoKOtk%2B1PjHpGLoSWDd4jsGt2227g%3D&simplified_type=image&scoped=true&scope_type=Project&scope_id=1&qqfile=20140113_009_2.jpg" for 70.7.41.68 at 2014-01-16 11:25:51 +0900
Processing by Rich::FilesController#create as */*
Parameters: {"file"=>#<ActionDispatch::Http::UploadedFile:0x38f65f8 @original_filename="20140113_009_2.jpg", @content_type="application/octet-stream", @headers=nil, @tempfile=#<File:C:/Windows/TEMP/raw-upload.20140116-2928-448olw>>, "authenticity_token"=>"Uq+O5l37uYZmhMnoKOtk+1PjHpGLoSWDd4jsGt2227g=", "simplified_type"=>"image", "scoped"=>"true", "scope_type"=>"Project", "scope_id"=>"1", "qqfile"=>"20140113_009_2.jpg"}
Current user: redmineadmin (id=1)
Command :: identify -format '%wx%h,%[exif:orientation]' "C:/Windows/TEMP/20140113_009_220140116-2928-ars12p.jpg[0]"
Command :: identify -format %m "C:/Windows/TEMP/20140113_009_220140116-2928-ars12p.jpg[0]"
Command :: identify -format %m "C:/Windows/TEMP/20140113_009_220140116-2928-ars12p.jpg[0]"
Command :: identify -format %m "C:/Windows/TEMP/20140113_009_220140116-2928-ars12p.jpg[0]"
Command :: convert "C:/Windows/TEMP/20140113_009_220140116-2928-ars12p.jpg[0]" -auto-orient -resize "100x" -crop "100x100+0+0" +repage "C:/Windows/TEMP/20140113_009_220140116-2928-ars12p20140116-2928-18ed4va"
Command :: file -b --mime "C:/Windows/TEMP/20140113_009_220140116-2928-ars12p20140116-2928-18ed4va"
[paperclip] Error while determining content type: Cocaine::CommandNotFoundError
Command :: identify -format '%wx%h,%[exif:orientation]' "C:/Windows/TEMP/20140113_009_220140116-2928-ars12p.jpg[0]"
Command :: identify -format %m "C:/Windows/TEMP/20140113_009_220140116-2928-ars12p.jpg[0]"
Command :: identify -format %m "C:/Windows/TEMP/20140113_009_220140116-2928-ars12p.jpg[0]"
Command :: identify -format %m "C:/Windows/TEMP/20140113_009_220140116-2928-ars12p.jpg[0]"
Command :: convert "C:/Windows/TEMP/20140113_009_220140116-2928-ars12p.jpg[0]" -auto-orient -resize "100x" -crop "100x100+0+0" +repage "C:/Windows/TEMP/20140113_009_220140116-2928-ars12p20140116-2928-pnxa0s"
Command :: file -b --mime "C:/Windows/TEMP/20140113_009_220140116-2928-ars12p20140116-2928-pnxa0s"
[paperclip] Error while determining content type: Cocaine::CommandNotFoundError
Completed 200 OK in 1139ms (Views: 0.0ms | ActiveRecord: 0.0ms)
Started GET "/redmine/rich/files/53" for 70.7.41.68 at 2014-01-16 11:25:52 +0900
Processing by Rich::FilesController#show as */*
Parameters: {"id"=>"53"}
Current user: redmineadmin (id=1)
Rendered plugins/redmine_ckeditor/app/views/rich/files/_file.html.erb (0.0ms)
Rendered C:/BitNami/redmine-2.3.2-1/ruby/lib/ruby/gems/1.9.1/gems/rich-1.4.6/app/views/rich/files/show.html.erb (0.0ms)
Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
답글 (1)
RE: 이미지 업로드 관련 문의드립니다. - 커뮤니티 관리자이(가) 2014-01-17에 추가
안녕하세요? 커뮤니티 관리자입니다.
답변이 늦었습니다.
일단 위와 같은 현상이 재현되어야 하는데 재현되면 분석해 보도록 하겠습니다.
관심 가져 주셔서 감사합니다.