upload to iframe


/ Published in: Rails
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.