Watch, Follow, &
Connect with Us

Please visit our new home

Public Report
Report From: 3rdRail    [ Add a report in this area ]  
Report #:  60874   Status: Open
Mozilla Browser can't upload file
Project:  3rdRail Build #:  v20080311_0801
Version:    unspecifie Submitted By:   Luke Fan
Report Type:  Basic functionality failure Date Reported:  4/14/2008 12:24:00 AM
Severity:    Serious / Highly visible problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All versions Internal Tracking #:   5805
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: 1
I create a project and want to upload some files.
But the server stoped when I upload something.
I can do it by IE7 or Firefox, but can't by Mozilla Browser with 3rdRail.
Steps to Reproduce:
create a new project.
create a new controller.

the follow is the controller's source:

class PhotoController < ApplicationController

  def index

  def upload

  def get_photo
    send_file "#{RAILS_ROOT}/public/images/1.jpg", :type => 'image/jpeg', :disposition => 'inline', :filename => 'luke.jpg'    
  def post_pic"#{RAILS_ROOT}/public/images/1.jpg", "wb") {|f| f.write(params[:pic].read)}
    redirect_to :action=> :get_photo

the follow is upload.html.erb:

<% form_tag({:action => "post_pic" },  { :multipart => true}) do %>
    <%= file_field_tag :pic %>
    <%= submit_tag %>
<% end %>


open "http://localhost:3000/photo/upload" by the Mozilla Browser, load a file and click submit.
Ruby 1.86
Rails 2.02
3rdRail 1.1


Server Response from: ETNACODE01