upload_example
upload_example copied to clipboard
Delete uploaded files
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.