Yes, look for this line in filegator/include/blueimp/server/php/upload.class.php

move_uploaded_file($uploaded_file, $file_path);
				

and add you custom code after or before that line, something like this email notification:

mail('me@example.com', 'Subject', 'New file uploaded');
				

You can access current user’s parameters such as username, email, homedir or permissions via $_SESSION[‘simple_auth’] variable. See this example:

mail('me@example.com', 'Subject', 'New file uploaded by the user: '.$_SESSION['simple_auth']['username']);
				

More complex example using current SMTP configuration:

$gator = new gator();
$gator->sendEmail('admin@example.com', 'Notification', 'New file uploaded by the user: '.$_SESSION['simple_auth']['username']); // admin
$gator->sendEmail($_SESSION['simple_auth']['email'], 'Notification', 'New file uploaded: '.$file->name); // user
				
Alert: For Control Panel Help & Tutorials, click here: Panel Tutorials
Was this answer helpful? 0 Users Found This Useful (0 Votes)

Powered by WHMCompleteSolution