-
Notifications
You must be signed in to change notification settings - Fork 49
Missing feature: Remove uploaded image #15
Comments
I did it by just remove the "hidden" element that holds current relation and save the form.
Could be that above snippet doesn't work as I didn't cut/paste it from the project because there was a lot of more markup etc. But I think you should get the idea. gr. Frans |
Hej Frans,
and
and saving the form afterwards (as when uploading files) wont delete my filereference at all.... |
I talked with sritter at the T3DD15 about this stuff. Once the upload is persisted the file reference exists in the table. Next time you persist something, you'll have to remove superflous references on your own from the table. Use the normal TYPO3 database API. |
Cause the lack of a implemented delete function?;-) so is the right way to remove references and update refindex via database API? |
Crosslink: See this great new post by maddy as well: http://ab-softlab.tumblr.com/post/119838114044/fileupload-in-frontend-using-typo3-6x-or-7-fal |
Hi Martin,
in the room Model i add
The Model must have a Part like:
Works fine, Greetings from Kiesi |
But have a look at the UploadedFileReferenceConverter. It must use the same FileReference Model. The original use a HelHum one. |
This linked helped me implement a remove-Function: |
@brisellda Hey, thank you, cool. To make it complete: Ghanshyam Gohel then points to http://blog.typo3servers.info/show/typo3-extbase-fal-image-upload as well. Looks good. |
@brisellda @marble This is Ghanshyam Gohel. Thanks for the point those links but unfortunately, expired those links. Then, I have created complete example for FAL image upload and image delete here: https://gist.github.com/ghanshyamgohel/43993b657797876fcee23752af87f31e Note: I highly recommend to use |
Description:
Lets say our domain object has a $logo and a $firstName. When editing the record you can set and then empty $firstName back and forth. But with the current version of upload_example you CANNOT remove a $logo once it's uploaded. That should be possible as well.
What I've tried
... works only partly. That is, it works as long as objects are not persisted. I've added a checkbox for removing
In Fluid:
And a clause in the UploadedFileReferenceConverter.php:
Good:
This works for non persisted files.
Bad:
It's not enough to just remove a file (reference!) in that way if it's persisted before. So you get for example:
Missing:
Code to delete the (FAL) file reference.
Sorry...
I'm trying to dive into extbase and fal and so ... but I'm not ready to come up with a solution yet.
The text was updated successfully, but these errors were encountered: