When I try to upload a swf file ii get some weird screen with a bunch of text. The text is shown below.
ArgumentError in PostController#create
/home/e621/e621-production/current/vendor/image_size.rb:258:in Integer': invalid value for Integer: "0b"
RAILS_ROOT: /home/e621/e621-production/current
Application Trace | Framework Trace | Full Trace
/home/e621/e621-production/current/vendor/image_size.rb:77:in initialize'
/home/e621/e621-production/current/vendor/image_size.rb:258:in measure_SWF'
(eval):1:in initialize'
/home/e621/e621-production/current/app/models/post_methods/file_methods.rb:173:in eval'
/home/e621/e621-production/current/app/models/post_methods/file_methods.rb:173:in new'
/home/e621/e621-production/current/app/models/post_methods/file_methods.rb:173:in determine_content_type'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:178:in send'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:178:in evaluate_method'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:166:in call'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:93:in run'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:92:in each'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:92:in send'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:92:in run'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:276:in run_callbacks'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.18/lib/active_record/callbacks.rb:344:in callback'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.18/lib/active_record/callbacks.rb:312:in valid?'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.18/lib/active_record/validations.rb:1088:in save_without_dirty'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.18/lib/active_record/dirty.rb:79:in save_without_transactions'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.18/lib/active_record/transactions.rb:229:in send'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.18/lib/active_record/transactions.rb:229:in with_transaction_returning_status'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.18/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in transaction'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.18/lib/active_record/transactions.rb:182:in transaction'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.18/lib/active_record/transactions.rb:228:in with_transaction_returning_status'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.18/lib/active_record/transactions.rb:196:in save'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.18/lib/active_record/transactions.rb:208:in rollback_active_record_state!'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.18/lib/active_record/transactions.rb:196:in save'
/home/e621/e621-production/current/app/controllers/post_controller.rb:108:in create'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/actionpack-2.3.18/lib/action_controller/base.rb:1333:in send'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/actionpack-2.3.18/lib/action_controller/base.rb:1333:in perform_action_without_filters'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/actionpack-2.3.18/lib/action_controller/filters.rb:617:in call_filters'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/actionpack-2.3.18/lib/action_controller/filters.rb:610:in perform_action_without_benchmark'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/actionpack-2.3.18/lib/action_controller/benchmarking.rb:68:in perform_action_without_rescue'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.18/lib/active_support/core_ext/benchmark.rb:17:in ms'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.18/lib/active_support/core_ext/benchmark.rb:17:in ms'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/actionpack-2.3.18/lib/action_controller/benchmarking.rb:68:in perform_action_without_rescue'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/actionpack-2.3.18/lib/action_controller/rescue.rb:160:in perform_action_without_flash'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/actionpack-2.3.18/lib/action_controller/flash.rb:151:in perform_action'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/actionpack-2.3.18/lib/action_controller/base.rb:532:in send'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/actionpack-2.3.18/lib/action_controller/base.rb:532:in process_without_filters'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/actionpack-2.3.18/lib/action_controller/filters.rb:606:in process'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/actionpack-2.3.18/lib/action_controller/base.rb:391:in process'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/actionpack-2.3.18/lib/action_controller/base.rb:386:in call'
/usr/local/rvm/gems/ree-1.8.7-2011.03/gems/actionpack-2.3.18/lib/action_controller/routing/route_set.rb:438:in call'
Request
Parameters:
{"post"=>{"description"=>"A text game I found on FA,
Forgive the lacking tags but I haven't explored too much in it. Maybe you guys could add as you play.",
"tags"=>"gay male female straight text text_game cum cum_in_ass dragon equine horse penis balls animated flash mouse tagme lizard reptile sex",
"parent_id"=>"",
"file"=>#<File:/tmp/RackMultipart20140604-5043-ytey8w-0>,
"source"=>"http://www.furaffinity.net/view/11917533/",
"rating"=>"Explicit"}}
Show session dump
Response
Headers:
{"Cache-Control"=>"no-cache",
"Content-Type"=>"",
"Set-Cookie"=>"blacklisted_tags=; path=/\nblacklist_avatars=true; path=/\nblacklist_users=false; path=/"}
How do I fix this?
Updated by spight