Inside Activate
Development
File Upload Settings
3 min
activate uses a secure and configurable mechanism to control how files and images are uploaded these settings are managed under //resources/configuration/uploads maximum file size the maxfilesize parameter defines the maximum number of bytes a file can be before the upload is rejected each fileupload or imageupload control can also have its own maxfilesize setting these control level limits must be equal to or smaller than the global value defined in //resources/configuration/uploads valid file types each upload control defines a list of valid file extensions that it accepts these are checked during upload initiation at the server level, an additional set of validfiletypes parameters is defined under //resources/configuration/uploads the system parameter should not be modified custom file types can be added by creating additional validfiletypes parameters file signature validation activate does not rely solely on file extensions for validation each uploaded file is checked to ensure that its content matches the declared file type for example, a gif file definition verifies that the file begins with the proper content signature \<type ext=" gif"> \<signature>47 49 46 38\</signature> \</type> this ensures that the uploaded file’s internal structure matches its extension, providing protection against spoofed or malicious files