• Hi,

    first of all, thank you very much for this excellent plugin! I’m using it for the first time and I have issues deleting an uploaded file (both on frontend in a record form and on backend in the participants data list). I have checked the FTP upload direction and the file is being deleted, but the file name still seems to be set in the database.

    Is this my fault, am I the only one having trouble deleting files? Updating records and everything else works fine and like I said, the file that I need to delete really gets deleted, but after this the file name still shows on the list and it looks like it is still there (the database field content does not get deleted).

    Could you please help me? Thank you in advance and keep up the great work!
    Tatjana

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Roland Barker

    (@xnau)

    Check on the “Allow File Delete” setting in the Participants Database settings under the general tab. If that is unchecked, then deleting a file only removes the reference to it in the record. That actual file remains on the server at the “File Upload Location”

    Thread Starter tatitati26

    (@tatitati26)

    Hi,

    thank you for the quick response. The setting “Allow File Delete” is checked. Actually, the problem is not the deleting itself – as I said, I checked the uploads folder after trying to delete a file and the file has been really deleted. But the file name still appears in the database and on the website so what is not getting deleted is the database entry.

    I don’t know why that happens, I also tried installing the plugin on another wordpress installation and the problem remains there, too. Is it possible that this is a bug? Deleting the file from the wordpress backend also does not work properly – that means the file gets deleted but the name still shows so it looks like it is still there which is strange. Do you have a solution for this?

    Thank you in advance, I really appreciate your help.
    Tatjana

    Plugin Author Roland Barker

    (@xnau)

    Got it…checked this and yes, it’s not deleting the value from the record.

    This is actually due to a couple of line that are “commented out”in the main script: in participants-database.php on line 1904, you’ll see:

    // unset( $_POST[$column->name] );
    // $post[$column->name] = ”;

    remove the double // from both lines and the value will be deleted from the record.

    Thanks for catching my mistake!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Cannot delete uploaded file’ is closed to new replies.