Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-15490

Events for file deletion are not working with plupload

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 3.2.1
    • None
    • Events
    • None

    Description

      For clarity, create file named result.txt in root directory of your forum.

      Write next code in event/listener.php of your extension:

       

                  'core.delete_attachments_from_filesystem_after'            => 'delete_file',

       

          public function delete_file($event)
          {
              $new_file = 'result.txt';
              $content = $event['space_removed'];
       
              file_put_contents($new_file, $content);
          }
      

      You will see the number written as a result after deleting the file along with the message, but you will not see anything after deleting via plupload.

      Same for other events in phpbb/attachment/delete.php

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            Shredder Shredder
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: