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 but I cannot find anything for action POST.
I read that you have to use the HTTP::collect to look at the payload but within the payload, I still cannot get anything. Even a regex to search for executable is not successful. Anyone here manage to do up an irule that can do that?
I know, this is so much easier to be done on the form page using js or whatever server-side language that the form is written in. Let say I cannot go in that direct.
Thanks in advance.
- naladar_65658
Altostratus
Have you looked at using HTTP::method equals "POST" - Perry_Ler_71437
Nimbostratus
Hi Naladar - hoolio
Cirrostratus
Hi Perry, - Perry_Ler_71437
Nimbostratus
Hi Aaron - hoolio
Cirrostratus
The 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: - Perry_Ler_71437
Nimbostratus
Hi Hoolio
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