creating files

Discussion in 'Ruby' started by Sijo Kg, Jul 26, 2008.

  1. Sijo Kg

    Sijo Kg Guest

    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/.
     
    Sijo Kg, Jul 26, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ravi Ambros Wallau
    Replies:
    0
    Views:
    4,092
    Ravi Ambros Wallau
    Jun 1, 2005
  2. crazyprakash
    Replies:
    4
    Views:
    3,376
    adrian
    Oct 30, 2005
  3. Replies:
    4
    Views:
    956
    M.E.Farmer
    Feb 13, 2005
  4. Replies:
    3
    Views:
    1,465
    Rolf Magnus
    Jan 18, 2009
  5. Ravi Ambros Wallau
    Replies:
    0
    Views:
    313
    Ravi Ambros Wallau
    Jun 1, 2005
Loading...

Share This Page