Community > Ideas
12 views
Under Review

Change the process for deleting temp files upload to a Live Form

Currently any files uploaded from Live Forms are put int he /temp folder and there is a process to delete them every 10 minutes

I suggest that you don't delete any files until the form entry, they are associated with, is submitted.

Any time period that you set is always going to be a problem as even setting it to once a day, if someone happens to start filling in the form 1 minute before the scheduled delete time then they're going to have problems. 

markcy markcy
published 01/17/2024 18:58
Add Comment
Mandeep Singh
replied 01/17/2024 20:34

This feature was introduced to stop malicious users from uploading files to your server without submitting a response. They would then use the server as a CDN. If the user does not submit the form then there's no need to keep the uploaded files. Also, there must be a timeout before the user submits the form. It's not a normal workflow to wait for 30 minutes or an hour to submit a form. We can introduce a setting to change the default time interval but this is a very important security feature that will remain. 

markcy
replied 01/17/2024 21:24

Is the time on a regular schedule,  ie just every 30 minutes.  Or is it a time from when each file was first uploaded?  This would be best.  

Some of the forms we have can take 30 minutes for people to complete as we ask for long text fields of information from people.  And also information that they might need to go and lookup elsewhere, so it can take time to submit a form.  I suggest that you allow the time interval configuration at the form level.  Some forms will always be short and take a few minutes to complete, others will always take much longer and so you can't have one time interval to cover them all.

Other thoughts I've had are to require a captcha on the form if a file upload is used - at the start of the form. 

Also, how does the Save and Return fit with this?  Will files be moved to their final destination if save is clicked? 

Last Activity 01/18/2024 12:00