File I/O Python
Hey I'm trying to write/open files with Python. Specifically using dataframe-image (dfi.export) and Image.open(). Is Railway equipped with any sort of temporary file storage system (CSVs and PNGs in my case)? If so, what are best practices?
Project ID: f18343ec-ab6f-4f93-beeb-d57c935e4e38
6 Replies
Project ID:
f18343ec-ab6f-4f93-beeb-d57c935e4e38
You might find these helpful:
- Dockerfile works locally, but doesn't work on Railway
- My node.js script downloads an image, then uploads it to twitter. Why is it not working on railway?
- Is there any apt file in railway like heroku?
⚠️ experimental feature
if they are only temp files, then you can save the files in the container, but any temp files will be lost on redeploy
any special syntax/setup to save files in the container?
further, if i wanted to outsource file storage, do u recommend s3 or an alternative?
No? Save files to a /tmp folder if files are only temporary
I personally use b2 cloud storage from backblaze
i think its something specific to dataframe-image package export function. fwiw, i had this issue on heroku too and had to install a chromepack plugin to use dfi.export.