contao / core-bundle

[READ-ONLY] Contao Core Bundle
GNU Lesser General Public License v3.0
123 stars 58 forks source link

Select folder in downloads element -> not possible anymore? #1655

Closed Defcon0 closed 6 years ago

Defcon0 commented 6 years ago

Hello,

I think in Contao 3 it has been possible to select a folder in a downloads content element so that in the frontend the files in the folder are shown as a list. Unfortunately this doesn't work anymore and if I select a folder, this doesn't get into the picker. Of course I have the possibility to select the files in the folder, but then I'd have to visit the content element everytime I add a new file. For me this wouldn't be a problem but for the customer it is ;-)

Am I doing something wrong or is it a bug?

Bye Defcon0

Defcon0 commented 6 years ago

Update: I've just seen that it's only the case if I add new files just by ftp and not by using the file manager.

Nevertheless the folder doesn't show up in the form after selecting it in contao.

fritzmg commented 6 years ago

Update: I've just seen that it's only the case if I add new files just by ftp and not by using the file manager.

This is normal behaviour. The DBAFS will not be updated, if you upload files directly via FTP.

Defcon0 commented 6 years ago

Yeah, agreed.

What about the other issue?

fritzmg commented 6 years ago

Not sure what you mean. If you select the folder, the files of that folder will be available for download (assuming they are present in the DBAFS).

Defcon0 commented 6 years ago

If the folder is empty yet, no folder icon is shown next to the picker button. If you like I can post a picture?

fritzmg commented 6 years ago

Yes, please post a screenshot.

Defcon0 commented 6 years ago

See the attached video.

downloads.zip

asaage commented 6 years ago

Usually this will display the downloadable content of the folder but as it's empty there is nothing to display. It works perfectly fine though. On save you won't see a complaint about a blank mandatory field and you can upload your files later into that folder.

Defcon0 commented 6 years ago

Yes, I already noticed that. It works but nevertheless it would be nice if the folder would appear if it's empty :) It's not crucial, just a little issue. If it's fixed quickly, it would be nice. If not, no problem ;-)