user2490003
user2490003

Reputation: 11900

Creating a file in memory because Heroku does not allow filesystem access

I have an Experiment model with the fields -

I'm able to generate the CSV contents of the results attachment in memory, but since Heroku has no filesystem access, I can't physically write the file to disk and transfer it to Amazon S3.

Is there a way around this? Perhaps a way to virtually create a file in memory and then move it over to a remote host like S3?

Thanks!

Upvotes: 1

Views: 858

Answers (1)

Yang
Yang

Reputation: 1923

You can use ./tmp directory to create a temporary file. Please checkout this question for more details:

Creating temporary files in Heroku

Upvotes: 2

Related Questions