On May 11, 7:52 am, "hongseok.com" <[email protected]> wrote:
> I want to upload file using get method.
> for example, "http://www.mydomain.com/upload?file=c:\test.exe"; upload
> my local file to the remote server.
> I found one useful link about file uploading 
> here(http://www.tutorialspoint.com/ruby-on-rails/rails-file-uploading.htm).
> Even I've changed some code in order to fit my rails version, it
> worked well. But the problem is I have use <form> tag.
>
> I don't know how [view] make UploadedFile and pass it to [controller]
> and I tried to find how create UploadedFile. But failed :(
>
> Anyway, how can I upload my local file using above style url?
>

If you want to just pass the path of the file that won't work - the
file needs to be part of the request body. In theory get requests can
have a request body, but certainly in browser land this isn't common.
it might just work if you set the form's method to get (don't forget
to make the form multipart).
Why is this important ?

Fred
> help me plz, thx
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to