HOW TO apply custom logic after deleting a file?

Discuss everything related to File Uploader. All versions. Any questions related to the File Uploader developing or using should be posted to this forum.

Moderators: ne_moj, zewa, Milton, vadimako, ne_moj, zewa, Milton, vadimako

Milton
Senior
Senior
Posts: 31
Joined: Jan 14th, '10, 14:17

HOW TO apply custom logic after deleting a file?

Postby Milton » Apr 4th, '12, 18:04

If you want to apply some custom logic after deleting a file, you have to add your lines of code to inc/upload_unlink.php file after the unlink line.

Code: Select all

if($password=="*****") unlink("../".$file);
// INSERT YOUR CODE HERE

($file variable contains the deleted file's name)

Return to “ApPHP AJAX File Uploader”