# File upload via SSL not possible

**URL:** <https://www.ruby-forum.com/t/file-upload-via-ssl-not-possible/52047>\
**Category:** Rails\
**Created:** [January 10, 2006, 2:10pm UTC](https://www.ruby-forum.com/t/file-upload-via-ssl-not-possible/52047 "2006-01-10T14:10:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![E.K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/85f322/32.png) [@E.K](https://www.ruby-forum.com/u/E.K)\
**Post date:** [January 10, 2006, 2:10pm UTC](https://www.ruby-forum.com/t/file-upload-via-ssl-not-possible/52047/1 "2006-01-10T14:10:10Z")

</div>

We use an apache server (version 2.0.54) with mod\_ssl and the latest  
rails version on a Gentoo Linux OS.

We tried to run our application in both, a virtual host using HTTP and  
another using HTTPS with identical server configurations. With HTTP, we  
did not have any problem, but HTTPS did not allow us to upload files in  
rails into a database.

The log file displays a fcgi timeout and the HTTP return status is 500  
(server error).

We assume that mod\_ssl and fcgi (not fastcgi) do not communicate  
properly.

Did anyone already have this error? How can it be solved?

---

<div class="post-metadata">

**Author:** ![E.K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/85f322/32.png) [@E.K](https://www.ruby-forum.com/u/E.K)\
**Post date:** [January 22, 2006, 6:41pm UTC](https://www.ruby-forum.com/t/file-upload-via-ssl-not-possible/52047/2 "2006-01-22T18:41:28Z")

</div>

> Did anyone already have this error? How can it be solved?

I just deployed my app against apache2/mod\_ssl etc as you mention - and  
have the same problem.

the fastcgi.crash.log contains the following

[22/Jan/2006:17:34:36 :: 6019] Dispatcher failed to catch: no content  
body (EOFError)  
/usr/lib/ruby/1.8/cgi.rb:978:in `read_multipart' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/cgi_ext/raw_post_data_fix.rb:20:in`initialize\_query’  
/usr/lib/ruby/1.8/cgi.rb:2269:in `initialize' (eval):16:in`initialize’  
/usr/lib/ruby/1.8/fcgi.rb:600:in `new' /usr/lib/ruby/1.8/fcgi.rb:600:in`each\_cgi’  
/usr/lib/ruby/1.8/fcgi.rb:597:in `each' /usr/lib/ruby/1.8/fcgi.rb:597:in`each\_cgi’  
/usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi\_handler.rb:52:in  
`process!' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:22:in`process!’  
/var/www/diff/current/public/dispatch.fcgi:24  
almost killed by this error

I don’t have a solution yet
