I came across this FileSystem API in the DOM, that allows clients to store and retrieve files from user's Sandbox. I have not had a chance to play with it yet, but seems like a bright light to me.
http://www.html5rocks.com/en/tutorials/file/filesystem/ Regards, Sagar tamouse mailing lists wrote in post #1093872: > On Fri, Jan 25, 2013 at 8:44 PM, sagar p. <li...@ruby-forum.com> wrote: >> Part of the Rails application, I want to let the client keep the >> location string of a video file in the database at Heroku(My plan is to >> deploy the application at Heroku). So, when the client wants to access >> his or her file, the Rails application gets the location string from the >> database and opens the matching local file from his or her computer. Is >> this possible??? > > You wish to keep the path of a file that exists on the user's local > machine in your database in the cloud, and pass it back to the user? > > I cannot begin to see how this would be possible unless your user had > a server running on their localhost that could serve up the file. > > Trying to set a URL like `file:///home/username/somefile` cannot work > when you set it in a web page: > > <a href="file:///home/username/somefile">somefile</a> > > does not work when your web page is being served from elsewhere. Try > it. There are extremely good reasons for this. -- 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.