The file uploading doesn't work in remote_form_for tag

Hi all,
Greetings,
i have tried to upload a file through the remote_form_for tag, but not
getting the file uploaded, and getting number of errors,
Pls guide me in this directions
Regards
Saurabh P.
+919922907342
[email protected]

You can’t do file uploading using form_remote_tag or any of it’s
variants.
Javascript does not have access to your file system for security
reasons.

Try using an IFRAME to do the uploading instead.

Check this out for a clever iFRAME based approach which works :slight_smile:

http://khamsouk.souvanlasy.com/2007/5/1/ajax-file-uploads-in-rails-using-attachment_fu-and-responds_to_parent

Hi Saurabh,

You can not use a multipart form with Ajax. Please look here to
accomplish what you want

http://kpumuk.info/ruby-on-rails/in-place-file-upload-with-ruby-on-rails/

Brian

On Jan 7, 1:43 am, Saurabh P. [email protected]

ok … I m really thankful to you for your guidance and support!!!
I will try by other ways…
Thanks again!!!
Regards
Saurabh P.

On Jan 7, 6:36 pm, “[email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs