Can´t store pictures in a volume inside Formbricks
marcogll
HOBBYOP

2 years ago

I have been playing around with this template trying to figure out the way to store images after restart/awake/redeploy all images or files are gone, I declared in the .ENV

UPLOADS_DIR=./uploads

and the volume created inside Formbricks is named : /uploads

https://imgur.com/a/epoJYG0

Any idea what can I do to make it store pictures? I'm a newbie in this kind of deployments 🫣

3 Replies

2 years ago

Will be looking into this.


2 years ago

I have since updated my template and confirmed uploads now persist between deployments - https://railway.app/template/PPDzCd

If you aren't strongly attached to your current Formbricks project I would highly recommend deploying the updated template.

If you are attached to your current deployment -

  • Remove the UPLOADS_DIR variable
  • Add a variable RAILWAY_RUN_UID set to 0 (info)
  • Mount volume to /home/nextjs/apps/web/uploads/ (info)

marcogll
HOBBYOP

2 years ago

That worked pretty good, thanks a lot


Welcome!

Sign in to your Railway account to join the conversation.

Loading...