HighDots Forums  

Choose a directory path

Ruby On Rails Talk Ruby On Rails programming language mailing list


Discuss Choose a directory path in the Ruby On Rails Talk forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Salil Gaikwad
 
Posts: n/a

Default Choose a directory path - 11-06-2009 , 12:34 AM






Hello everyone,

How to give the functionality to choose a directory path to save a file
by a user?


Thanks in advance....
--
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 (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #2  
Old   
Matt Jones
 
Posts: n/a

Default Re: Choose a directory path - 11-06-2009 , 05:15 PM






On Nov 6, 12:34*am, Salil Gaikwad <rails-mailing-l... (AT) andreas-s (DOT) net>
wrote:
Quote:
Hello everyone,

How to give the functionality to choose a directory path to save a file
by a user?

Save a file where? On the server's filesystem or the client's? Not
much info in this question...

--Matt Jones
--~--~---------~--~----~------------~-------~--~----~
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 (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #3  
Old   
Salil Gaikwad
 
Posts: n/a

Default Re: Choose a directory path - 11-06-2009 , 11:07 PM



Quote:
Save a file where? On the server's filesystem or the client's? Not
much info in this question...

--Matt Jones

Hi Matt,

I want to save file at Client's System.

Thanks,

Salil Gaikwad




--
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 (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #4  
Old   
Matt Jones
 
Posts: n/a

Default Re: Choose a directory path - 11-07-2009 , 02:21 PM



On Nov 6, 11:07*pm, Salil Gaikwad <rails-mailing-l... (AT) andreas-s (DOT) net>
wrote:
Quote:
Save a file where? On the server's filesystem or the client's? Not
much info in this question...

--Matt Jones

Hi Matt,

I want to save file at Client's System.

The most reliable way to get a file to download every time (regardless
of content type) is to send a Content-Disposition header set to
'attachment'. See this doc:

http://support.microsoft.com/kb/260519

(on the MS KB, but the header works everywhere).

--Matt Jones
--~--~---------~--~----~------------~-------~--~----~
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 (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #5  
Old   
Prasad Kulkarni
 
Posts: n/a

Default Re: Choose a directory path - 11-08-2009 , 04:14 AM



Salil Gaikwad wrote:
Quote:
Save a file where? On the server's filesystem or the client's? Not
much info in this question...

--Matt Jones


Hi Matt,

I want to save file at Client's System.

Thanks,

Salil Gaikwad
Hi Salil,

I think you want download file option. For example on hitting a URL you
want user to download a zip file code for it you can do something like
this -

class MyController < ApplicationController

def downloadzip
send_file "path_to_file", :type=>"application/zip"
end
end

Thanks
-- Prasad
http://roorky.com
Interactive Programming Books
--
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 (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.