Writting a file gives me an Error: EACCES: permission denied

I have to create and download files dynamically, in other questions on this discord, I have seen that they give the solution for volumes because the files created in production are not persistent, but i dont want that, I download them and then delete them, I don't need them to be persistent, but it gives me this error: [Error: EACCES: permission denied, open '/app/public/miFile.tx'] Although it is in the public folder it still gives a writing error because it does not have permission
No description
Solution:
try removing line 20
Jump to solution
11 Replies
Percy
Percy7mo ago
Project ID: 28c9cac5-b533-4503-96a9-d476dd69034a
carlostrevino3583
carlostrevino3583OP7mo ago
28c9cac5-b533-4503-96a9-d476dd69034a
Brody
Brody7mo ago
does the public folder exist?
carlostrevino3583
carlostrevino3583OP7mo ago
Yes
Brody
Brody7mo ago
nixpacks or dockerfile?
carlostrevino3583
carlostrevino3583OP7mo ago
Dockerfile
Brody
Brody7mo ago
send it please
Solution
Brody
Brody7mo ago
try removing line 20
carlostrevino3583
carlostrevino3583OP7mo ago
Yes, it worked, thanks a lot
Brody
Brody7mo ago
no problem!
Want results from more Discord servers?
Add your server