Delete upoaded proforms files on the web server after sending emails

We use proforms for customer job application forms. For data protection reasons, it is important to delete the files uploaded to the form from the web server afterwards. These files should not be indexed by search engines or opened by unauthorized third parties. However, as the files are currently located in the uploads folder, this would currently be possible. As a workaround, we have created a custom snippet that is triggered after the email is sent and completely empties the contents of the custom upload folder. However, there may be a better, more standardized solution.

You already can set a different upload location for files in the “Config” tab. Then, using a custom action with some basic php code, you could just delete the files from there – or, with a custom cronjob that deletes files in this folder older than xy :slight_smile:

hi, we have done this already. thanks