Nope, don't think you can grab files and upload them via javascript.
Check out some Flash plugins for this. Reason is security I believe,
imagine javascript grabbing c:/turbotax_return or something.
I actually remember when Yahoo released their javascript library the
Ajax style form submit had a comment in the code about this very
issue.
On Jul 8, 8:34 am, BeeRich <[EMAIL PROTECTED]> wrote:
> Hi folks. Original post erased, reworked in this message.
>
> I'm trying to use a form submit, using AJAX, to submit a file.
>
> I will go through stuff.js which has a function that grabs the file
> submission:
>
> $('item5')
>
> Is this doable? Can I then turn around and submit this into an
> ajax.updater in order that my middleware can process it in
> file_uploads (the regular way I do it) without refreshing a form?
>
> Is there a way to submit files without refreshing a form?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---