Upload to heroku rails app with file path string -
i'm trying upload file rails app sending user's local location of file via parameter, input url this:
http://rails-app.herokuapp.com/element?file=c:\temp\data.txt
it's easy if i'm working on local machine, since can utilize file.read(filename), doesn't work on heroku. help!
first of heroku has read-only file system. can't upload straight heroku. utilize amazon s3 maintain files.
the sec issue approach. when running app locally - has access c:/ drive. app located @ remote server not have access computers c:/ drive, can't fetch file. should upload either through browser file field or through passing accessible http link.
ruby-on-rails heroku
No comments:
Post a Comment