Form - upload - file storage locations

Permalink
Concrete v5.7.5.13

I was looking intohttps://documentation.concrete5.org/developers/working-with-files-an... to create a folder outside of the root directory to store privacy-sensitive files.

Q: Is there a way to automatically use this location for specific forms? And not having to manually move the files within the file manager (easy to forget and users can upload at any time even if you're not ready to secure them manually). Don't want to set is as the default location obviously.

Q: Can I limit the File Upload input type accepted filetypes to be only (doc,pdf,...) for specific forms?

I know you can add them to fileset (easy to manage) but I don't want them to be available with a public link and secure the files immediately.

Possibility:
I can reroute files through htaccess and check permissions (only for c5.6):
https://www.concrete5.org/community/forums/customizing_c5/restrictin...

But maybe there is a better way.

c5dragon
 
Mnkras replied on at Permalink Reply
Mnkras
1. No, that would be a great feature request though.
2. I don't think so, not 100% sure though

You can always use events (on_file_add for example) to move files to different storage locations.