Forum Discussion
Perry_Ler_71437
Nimbostratus
Mar 16, 2010irule for file type checking
Hi
Anyone can point in the direction to look at? I need an iRule to check the file type that is uploaded through a html form page.
There is HTTP::uri for the action GET b...
hoolio
Cirrostratus
Mar 19, 2010The HTTP Content-Type header for a multipart form upload won't reflect the datatypes of any files being uploaded. It will be set to something starting with "multipart/form-data". If you collect the HTTP payload, you could start with a generic check of the entire payload for something like:
if {[HTTP::payload] contains "Content-Type: application/octet-stream"}{
or maybe:
if {[HTTP::payload] contains "Content-Type: application"}{
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects