Topic: File upload differences Firefox / IE

When I upload a file in Firefox, everything works fine.

This is my form:

<% form_for(:attachment, :url => attachments_path(@user.login), 
                        :html => { :multipart => true }) do |f| -%>
    <p>
        <div class='block_left'>
               <label for="attachment">My picture:</label><br/>
            <% if @user.has_picture? %>
                  <%= image_tag(@user.picture_attachment.public_filename(:thumb)) %>
              <% end %>
          </div>
        <%= f.file_field :uploaded_data %>
          <%= f.hidden_field :content, :value => 'userpic' %><br>
        <% if @user.has_picture? %>
            <%= submit_tag 'Upload and replace' %>
        <% else %>
            <%= submit_tag 'Upload' %>
        <% end %>
    </p>
<% end %>

These are the request parameters that the action that actually stores the file receives after uploading the file:
params = --- !map:HashWithIndifferentAccess
action: show
id: Woyzeck
controller: probands

When I upload a file in IE, nothing happens.
params = --- !map:HashWithIndifferentAccess
format: css
action: show
id: styles-ie
controller: probands

As you can see, for some strange reason IE sets the id-parameter to the name of it's stylesheet. Any ideas ?

Re: File upload differences Firefox / IE

Try:

<% form_for(:attachment, :url => attachments_path(@user.login), :multipart => true) do |f| -%>

It would be helpful if we could see the generated HTML aswell (if this doesn't work).

Re: File upload differences Firefox / IE

Thx for the reply, but I refactored all this stuff a long time ago. Problem gone. Reason unknown.

Re: File upload differences Firefox / IE

Oh sorry didn't see the date on your post there smile Long time ago.