upload_example icon indicating copy to clipboard operation
upload_example copied to clipboard

Delete uploaded files

Open WPa13rXx2gx19lKQrNFF opened this issue 7 years ago • 0 comments

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.

WPa13rXx2gx19lKQrNFF avatar Aug 22 '18 12:08 WPa13rXx2gx19lKQrNFF