Wonder if somebody could help me. I am trying to use the Base64 to image custom module. It will work fine on my local docker test but on the Digital Ocean live site it will not work. I am using Trafefik and portainer (not sure if this has any bearing). I get the following error:
After looking on the forum this seems to be exactly the same problem.
When I look at my dockerfile-compose.yml none of the volume settings are there. I tried to add them in manually then redeployed. The web app ended up not working after this and I got a Bad Gateway error. Has this changed in recent versions of wappler or is there something else I need to do?
This is then the web version on Digital Ocean. The docker-compose is completely different. I have not altered these in any way it is just what Wappler has made. If I try and add the volumes manually in the same position as they are above it breaks the app. I get a bad gateway.
Thanks George. It’s the base64tofile extension. I didn’t write but seems to work perfectly for my need. This is to get dataurl from sqlite on capacitor (image) back onto the server as a file. This will mean it can all work offline and sync back when there is a internet connection. Then I can upload to s3. Is there any way to do this without a custom extension/ code?
It have placed the files in the extensions/server-connect/modules . I can pick it in the wappler ui and works great when on a local docker. When I try to use it on digital ocean though it doesn’t work and comes up with the error above. I just can’t figure out why.
If I go into the web server on the remote I can see the extension files and also the folder were I want to place the image. The required module fs-extra is listed to on the remote server.
Turns out on Digital Ocean it is case sensitive but on local docker it is not. Why would this be aren’t Docker images supposed to be exactly the same. Changed the Base64ToFile to base64tofile (all lower case).