getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.27k stars 167 forks source link

File not deleted via files field in panel #3379

Closed verkruemelt closed 3 years ago

verkruemelt commented 3 years ago

Describe the bug

Delete File in files field doesn't delete that file. It's only unlisted in the field, but it exists in the folder anyway. File is visible in the side-panel with preset page. If you try to 'reupload' the file error The file exists and cannot be overwritten occurs.

To Reproduce
Steps to reproduce the behavior:

  1. Create new page via panel.
  2. Upload a file to that page. Save.
  3. Delete that file via files field. Save.
  4. File isn't listed in files field but in the side panel.

Expected behavior

Delete the selected file in the files field.

Screenshots
grafik

Kirby Version

3.5.5

Console output

No Output.

Desktop (please complete the following information):

Smartphone (please complete the following information):
Not tested.

Additional context

afbora commented 3 years ago

This is expected behavior. Because the files field keep the page data. It is not deleted from the files field, it is removed. To delete the file from the page, you should use the files section, not the files field.