Difficult to understand your english, are you saying the 'files folder' in the delete behaviour should be left blank if the relative file path and file name are in the db?
If so I have tried this and still the thumbnail does not get deleted, here is the code:
<?php //************************** // DELETE UPLOAD // http://www.DwZone.it // Version: 1.3.11 //************************** $upload = new dwzUpload(); $upload->SetRedirectUrl("admin_menu.php"); $upload->SetFormName("form1"); $upload->SetUploadType("delete@_@mysql"); $upload->SetDbParam($hostname_mysql, $database_mysql, $username_mysql, $password_mysql); $upload->SetEditTable("machinery"); $upload->SetFilesToDelete("image1"); $upload->SetPrefix("_small@_@@_@"); $upload->SetEditColumn("id"); $upload->Execute(); ?> |
|
|