Add:
AutoCert:
CSRFField:
CSRFSecret:
Certs:
Exceptions:
Headers:
LogDir:
Logs:
Methods:
Remove:
Replace:
Routes:
SkipDetection:
URLLength:
UploadSizeMB:
UploadTypes:
WAF:
UploadTypes
default: jpg, png, bmp, pdf
Allows to specify uploadable file types.
Any attempt to upload other than specified file type will be declined by ruxy firewall.
UploadTypes:
.jpg: image/jpeg, image/jpg
.bmp: image/bmp
.pdf: application/pdf, application/octet-stream
.png: image/png
If upload failed please see errors.log
Error will show why upload failed. Common error is that given uploaded file content have different base mime-type as expected.
For example, you want to upload .gpx
files:
UploadTypes:
.gpx: application/gpx+xml
It would trigger error:
This will fail as detected base mime-type for this file should be text/xml
.