Hallo,
I’m not sure some hacker will use this for using spamming files in the bubble storage / aws. but this is very frustrating if the application owner knows that the storage of the application is often full .
This is the problem
If some user upload some file or image but haven’t pressed the ok button or the upload button which triggers the workflow to be stored in the database
Before Upload
After Upload
then for example the user apparently wants to replace it with a new photo before he presses the okay button or something else.
Then the most recent photo is uploaded to the database so that the previous photo isn’t uploaded.
But it turns out the previous photo was still uploaded to the database without having anything to do with the database in the bubble and it was entered in the file manager.
I do not know whether this photo is included in the bubble storage count which affects the cost or not
The solution is to use a bubble that is by creating a custom state list that every 1 second add files from the picture uploader value.
Use workflow
Do when condition true
If the list is more than 2 files
Delete an uploaded
The file was first created from a custom state list
In every page that have picture uploader or file uploader
Or second is if a temporary storage file is implemented that is automatically erased file, if there are more than a few temporary files. And if the button that is relevant to the picture uploader is pressed then upload it to the file manager storage. So the user bubble doesn’t create a workflow like the first solution. I don’t know, I’m not a programming expert but that’s the logic I think
Thanks