Files can not be deleted anymore
I uploaded an image for testing purpose on a TYPO3 6.2beta1 Web. And directly after that i wanted do delete the file again. But that is not possible, because "The file cannot be deleted since it is still used at the following places:"
But i just uploaded the file, i did not used it and the list of places is empty.
[BUGFIX] Can not delete Files with metadata records
When a sys_file record has relation with a sys_file_metadata
record the file can not be deleted.
This patch excludes tables sys_file_metadata from the
Reviewed-by: Alexander Opitz
Tested-by: Alexander Opitz
Reviewed-by: Fabien Udriot
Reviewed-by: Markus Klein
Tested-by: Markus Klein
#2 Updated by Martin Holtz over 5 years ago
Martin Holtz wrote:
I had a look into the database, i have two records uid 8 and uid 14 with the same image. And the image seems to reference to itself... somehow. See attached image.
Ok, now i get it. The reference is sys_file_metadata:8:file. I tried to delete that record via database, which does not help. The metadata record is created automatically before i can delete the record.
#3 Updated by Steffen Ritter over 5 years ago
- Subject changed from recently uploaded file can not be deleted. to Files can not be deleted anymore
- Status changed from New to Accepted
- Priority changed from Should have to Must have
- Target version set to 6.2.0
the reference check must exclude tables sys_file_metadata and sys_category as these are not usages