Posted By

yzhang on 10/03/10


Tagged


Versions (?)

upload to iframe


 / Published in: Rails
 

  1. <%= form_for :photo, :html => {:multipart => true, :target => 'upload_target'} do |f| %>
  2. <%= f.file_field :file, {:onchange => 'start_upload();'} %>
  3. <%= end %>
  4.  
  5. <iframe id="upload_target" name="upload_target" style="width:0;height:0;border:0px solid #fff;"></iframe>

Report this snippet  

You need to login to post a comment.