diff --git a/processes/on-file-upload.php b/processes/on-file-upload.php index afd1266..488eaea 100644 --- a/processes/on-file-upload.php +++ b/processes/on-file-upload.php @@ -3,8 +3,11 @@ if (!isset($_SESSION['loggedIn'])) { die('Sorry, not logged in.'); } // Purpose: This file is run when files are uploaded, has $uploads array available to it -// Langs: PHP only +// Langs: PHP (tho can concat JS within $doNext string, see below) // Example: // $fh = fopen(dirname(__FILE__)."/../file-dir-access.log", 'a'); // fwrite($fh, "UPLOAD >>> ".date("D dS M Y h:i:sa").": ".($uploads[0]->name)."\n"); // fclose($fh); + +// If JS is needed, add within $doNext string below, eg $doNext .= ";alert('uploaded');"; +$doNext .= "";