Hello all, I use lighttpd 1.4.8 and I have a problem with image uploads. I tried file_upload plugin, but it is strangely working sometimes and refuse to work sometimes. Function in the controller is (@user is loaded in before_filter) def update_watermark @user.watermark = params[:user][:watermark] @user.save redirect_to :action => "index" end Model is file_column :watermark and my view is <%= file_column_field "user", "watermark", :size=>10, :style=>"float:left;width:100px" %> Error I got is; The proxy server received an invalid response from an upstream server. The proxy server could not handle the request POST /myXC/update_avatar. Reason: Error reading from remote server If I try lighttpd without apache, it never times out and waits for server''s response. So any guess? Thanks in advance Gokhan -- Posted via ruby-forum.com.
Are you using <form ... enctype="multipart/form-data"> ? On 12/14/05, Gokhan Arli <gokhan-Eg+4iotkbyJeoWH0uzbU5w@public.gmane.org> wrote:> Hello all, > > I use lighttpd 1.4.8 and I have a problem with image uploads. > > I tried file_upload plugin, but it is strangely working sometimes and > refuse to work sometimes. > > Function in the controller is (@user is loaded in before_filter) > > def update_watermark > @user.watermark = params[:user][:watermark] > @user.save > redirect_to :action => "index" > end > > > Model is > > file_column :watermark > > > and my view is > > <%= file_column_field "user", "watermark", :size=>10, > :style=>"float:left;width:100px" %> > > > Error I got is; > The proxy server received an invalid response from an upstream server. > The proxy server could not handle the request POST /myXC/update_avatar. > > Reason: Error reading from remote server > > > If I try lighttpd without apache, it never times out and waits for > server''s response. > > So any guess? > Thanks in advance > Gokhan > > -- > Posted via ruby-forum.com. > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > lists.rubyonrails.org/mailman/listinfo/rails >
Yep that is not an issue And when I try on My Mac OS X, it works right now (strange I am not sure if I like it yet), can it be a problem with lighttpd 1.4.7? we are upgrading it to 1.4.8. Kyle Maxwell wrote:> Are you using <form ... enctype="multipart/form-data"> ?-- Posted via ruby-forum.com.
Sorry, I have no idea... I''d be interested to hear about the resolution, when it happens. On 12/14/05, Gokhan Arli <gokhan-Eg+4iotkbyJeoWH0uzbU5w@public.gmane.org> wrote:> Yep that is not an issue > > And when I try on My Mac OS X, it works right now (strange I am not sure > if I like it yet), can it be a problem with lighttpd 1.4.7? we are > upgrading it to 1.4.8. > > Kyle Maxwell wrote: > > Are you using <form ... enctype="multipart/form-data"> ? > > > -- > Posted via ruby-forum.com. > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > lists.rubyonrails.org/mailman/listinfo/rails >