Skip to content
This repository was archived by the owner on May 21, 2021. It is now read-only.
This repository was archived by the owner on May 21, 2021. It is now read-only.

Delete uploaded files #33

Description

@WPa13rXx2gx19lKQrNFF

I have used this as a very well working base for our project and I am very glad that it exists! We are asked to have file deletion as well, so started out and tweaked the UploadViewHelper by adding this line:

$output .= '<input type=\'checkbox\' name=\'' . $this->getName() . '[delete]\' value=\'' . htmlspecialchars($hashedresourcePointerValue) . '\'/>';

to the render function. This way the user can check that box, if he wishes to delete the file. Where could I go on implementing, since the file and the reference should be deleted. I would be happy if you could tell me where to interfere here, either the UploadedFileReferenceConverter or the ObjectStorageConverter.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions