If someone needs to upload files, and doesn’t want to use S3 or other provider. You can create Volumen on fly io and upload files on persistent storage.
First you need to add this line in your fly.toml
[mounts]
source="uploads"
destination="/public/uploads"
Then in plugins.js add (this is explained in docs)
upload: {
config: {
providerOptions: {
localServer: {
maxage: 300000,
},
},
},
},
then you can run
fly deploy
once more
This took me some time to figure out so I hope this will help someone