Upload file works but cant read the files

alfadaguru
HOBBY

2 years ago

hi, I'm using NodeJS perfectly deployed on railway my issues is file uploads works but i can not read the file after a successful upload i get the bellow error "ENOENT: no such file or directory, open 'public/uploads/9ed81d155bd2c5a8d51da364a89ad38bb5303d44.xlsx'"

1 Replies

2 years ago

You likely have your paths incorrect, please read up on relative Vs. absolute file paths. Additional make sure you are storing these files in a volume or else they will be wiped during the next deployment you make on account of the empherial container filesystems.