How to coordinate control of file uploads between the cient and the portal.
Currently (as of 328) the agent does not set the content type field, therefore it defaults to “misc”.
To make this work end to end as of 328 (agent to portal):
- Set etc/upload.*.cfg with a rule to “allow” some pattern of file names to be uploaded by the agent (at most: * allow)
- Add the portal configuration setting ALLOWED_UPLOAD_CONTENT_TYPE with a value of [“misc”].
For the portal to control which files can land there, we’d have to remove “misc” from ALLOWED and coordinate with the client/agent to send an ALLOWED types.