-
Delete a file when page closes
I would like to be able to delete an uploaded image file whenever a PHP page is navigated away from, either by the use of buttons on the page or the browser arrows.
I want to do this to stop a directory being filled with 'leftover' files.
I have a PHP script for uploading and cropping an image file, this file is selected by a form that calls the cropping script.
In the form there are buttons to Crop, Load File and Exit.
The Crop button starts the cropping process and finishes by deleting the original file.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks