I modified the ajax-multiplefiles-handler.php. At the bottom of the page I added the following:
foreach($guidarray as $fileguid) {
$mvcfile=$uploader->GetUploadedFile($fileguid);
if(!$mvcfile)
continue;
$mvcfile->MoveTo(D."/vehicle_images/original");
$mvcfile->createMini(D."/vehicle_images/original", D."/vehicle_images");
//Deletes this instance.
$mvcfile->Delete();
}
Is this the wrong place to add this?
Thanks!