Ahh, thanks for the links. So I have a text field that gets filled in
with the file path after choosing a file by browsing the local hard
drive. I realize that when submitted, the file goes to my windows/temp
directory as a windows user. I haven''t done anything similar before.
It''s saving it in the form CGIxxxx.x, where the x''s are
numbers, much
like in the forthecode walkthrough which I am following.
There are problems with moving the file out of the temp directory to an
appropriate directory in my web application. When using the FileUtils.mv
function I get a permission denied rails error in my browser. That file
is being used by something, so I copied the file instead. I don''t know
if there will be a problem with uploaded temp files overcrowding the
temp folder. On a similar note, is there an optimal place to put
uploaded files within my RoR directory structure?
Also, what about security issues. How do I prevent malicious files from
entering my uploads directory with the potential to cause havoc or files
that are extremely big taking up space, etc.?
Eventually, when all this is sorted out, how would I go about providing
a link to the upload associated with the form I am viewing, so I can
download it or view it in my browser?
I apologize for all the questions. I am unsure about many aspects of
uploading files and was unable to find much information regarding it in
ruby on rails.
-Gilles
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---