Newb Newb wrote: [...] > in that folder path location i m going to save files.
On the client side? For security reasons, Web applications don't have direct access to the client-side filesystem. You'll have to give the client a download link and let the browser program take care of saving it OTOH, if this is on the server side, you can construct the path in a way that you know will be valid. In either case, there is *no point* to the validation you're trying to do. > and i m on windows ... Doesn't mean your clients will be, so you can't only accept Windows-style paths! Really, there's no validation that can do what you want here. Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- 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 [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 -~----------~----~----~----~------~----~------~--~---

