I’ve search this group for reports of this problem but didn’t find
I am doing the following with plain vanilla Rails 1.1.6 running WEBrick.
session[:photo_original_filename] = params[:photo][:original_filename]
redirect_to :controller => ‘home’, :action => ‘index’
I login with a user account and have access to all member-only pages.
Then I access the file upload view, select a local file and press the
I was supposed to be redirected to /home/index where
session[:photo_original_filename] is displayed.
However I was redirected to the Login page instead. This was because my
authenticate user filter had
failed when it shouldn’t.
I figure the session may have changed so I recorded the session_id
before and after [Upload] button
was pressed. They were indeed different.
Next, I remove the enctype=“multipart/form-data” part from the form
declaration. I perform the steps
again and was redirected /home/index, as expected (with my current
session remained in tact).
So, I don’t know what the problem is and do hope someone could provide