Docker Upload file - Permission Denied

I’ve deployed my app to a docker server on EC2 (what a PITA!), the problem I am having is that in my app I upload an image.

When uploading, I’m getting a ‘permission denied’ error. If I update the permissions on the folder, it works correctly. The problem is that every time I redeploy, I need to remember to update the permissions on that folder.

Any suggestions?

Did you define the upload folder as mount to the host server - and also with the right permissions.

Otherwise after rebuild the folder will be wiped empty as well.

Hi @crystaltaggart,
I too am getting this error (despite the upload folder being defined), did you get it going?

hi @George, how to workaround this in a wappler docker in developer pc ?

There is no need for any workaround- you just choose the user upload folder in your project options.

received this message
“message”: “mkdir(): Permission denied”
changing for user docker doesnt work
using chmod to open for everyone works … its OK for one upload folder in local pc

Well yes if you are developing on a Linux computer you will need to setup locally your permissions manually for the upload folder.

1 Like