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

Delete uploaded files #33

Open
WPa13rXx2gx19lKQrNFF opened this issue Aug 22, 2018 · 0 comments
Open

Delete uploaded files #33

WPa13rXx2gx19lKQrNFF opened this issue Aug 22, 2018 · 0 comments

Comments

@WPa13rXx2gx19lKQrNFF
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant