[IMPLEMENTED] Assets - Folder with Assets inside doesn't delete Assets

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [ x ] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

  • Go to Assets
  • Create Folder “XYZ”
  • Enter newly created Folder
  • Upload some Assets
  • Go to Parent Folder
  • Go to “XYZ” folder settings and select Delete
  • A popup asks/warns that Folder and Files inside will be deleted
  • Folder is Deleted but files remain undeleted

Files can be seen if a Filter is selected on the right Filter menu.

Expected behavior

  • Go to Assets
  • Create Folder “XYZ”
  • Enter newly created Folder
  • Upload some Assets
  • Go to Parent Folder
  • Go to “XYZ” folder settings and select Delete
  • A popup asks/warns that Folder and Files inside will be deleted
  • Folder is Deleted and Files are Deleted

Minimal reproduction of the problem

Environment

  • [ ] Self hosted with docker
  • [ x ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ ] Cloud version

Version: [4.1.0b]

Browser:

  • [ x ] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ x ] Edge

Others:

Right now, it is intended. I have a few solutions for this problem, but nothing yet, that is great. But I will continue to work on that.

I have also described it here: https://squidex.io/post/folder-structures-are-hard

:+1:
I’ve read the article before posting, but because there is not a definitive solution I reported it.

Also related to Assets do you see any possibility to have the assets physically divided by APP when using assetStore type Folder ?
In a long running project it would benefit the backup management and even IO performance because of the large number of files in on single folder.

thanks!

Can you create another feature request for your folder storage request?

Actually I have forgotten to go back to the asset folder deletion problem. I wanted to get it out and then solve this issue later.

Thanks!

How opened it here:

1 Like

Working on it: https://github.com/Squidex/squidex/pull/490