Description
Is your feature request related to a problem? Please describe.
This FR is in relation to the default security around files, specifically around deployments that never intend to save files.
As discussed in this PR, personally I think it feels bit clunky to recommend a fileTrigger for users that never intend to have any files uploaded to their servers. Also, considering anonymous users are disabled by default, I would expect that file uploads require a logged in user.
Describe the solution you'd like
I was thinking of possibly baking these into the server config:
-allowAnonymousFileUploads
: would be a breaking change as would prevent file uploads for no logged in users (unless set to true)
-allowFileUploads
: defaults to true. Can set to false for deployments that never want file uploads.
Describe alternatives you've considered
As said, you can achieve this functionality with a file trigger. I just think you should be able to build a secure server without requiring cloud code. If you're building a Parse Server and only reading the Object docs, you won't ever realise that your deployment can accept files, which could be problematic.
Additional context
Made this an issue instead of a PR for @mtrezza :)