Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > creating files

Reply
Thread Tools

creating files

 
 
Sijo Kg
Guest
Posts: n/a
 
      07-26-2008
Hi
i have
<%= file_field_tag "logo" %> using that i upload image files.,.In
controller how can i write this to a folder with a given fixed name..For
example suppose uploaded file original name is abc.png,(or abc.jpeg )but
in controller i have to name it to logo.png or logo.jpeg and write it to
a folder /opt/upload/logo.png (or /opt/upload/logo.jpeg) That means
if the file there already exists it shud overwrite also ..How can i do
this .Please help

Thanks in advance
Sijo
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how i can extract text from the PDF files,power point files,Ms word files? crazyprakash Java 4 10-30-2005 10:17 AM
"Error Creating Control" when creating a custom control (Design Time). Can't see tooltip message. Ravi Ambros Wallau ASP .Net Web Controls 0 06-01-2005 02:36 PM
"Error Creating Control" when creating a custom control (Design Time). Can't see tooltip message. Ravi Ambros Wallau ASP .Net 0 06-01-2005 02:36 PM
Text files read multiple files into single file, and then recreate the multiple files googlinggoogler@hotmail.com Python 4 02-13-2005 05:44 PM
Help! Files, Files, and more Files ... Everywhere JeffS Digital Photography 22 09-19-2004 01:47 AM



Advertisments