Thank you, Jordon and Dave.
I apologize if I am unclear. My question was to access client’s local
file system, not the Heroku’s. I wonder if your answer still sticks to
S3 is not an option for me right now, because the application would
require user to save the video clip and get ready for another clip in a
matter of 20-30 seconds. Also, the application would be used in an area
where the internet speed is not that high (about 128 kbps). So, I want
to minimize the network traffic as much as possible.
Dave A. wrote in post #1093867:
On Fri, Jan 25, 2013 at 9:44 PM, sagar p. [email protected] wrote:
the Rails application gets the location string from
the database and opens the matching local file
from his or her computer. Is this possible???
To expand on Jordon’s “Just no”:
Heroku does not provide any local filesystem whatsoever. The only
files you can count on being there, are what your uploaded application
initially installs. The whole point of cloud-based automagically
scaling solutions like Heroku is that (assuming you spring for the
non-free plans) you get new resources spun up and down as needed.
Obviously they won’t have all the local files that your app has
There is a common solution to this, namely cloud storage. Store the
files on Amazon S3 or some such, and it will be a bit more complex
than local storage but still quite feasible… and cheap so long as
you don’t store huge files or a huge number of them.
Dave A., the T. Rex of Codosaurus LLC,
secret-cleared freelance software developer
taking contracts in or near NoVa or remote.
See information at http://www.Codosaur.us/.