Sample code to sniff the contents of a file for document upl

Posted by christian.bryan@capita.co.uk on 16-Feb-2017 11:28

Hi All

The attached may be useful if you need to sniff the contents of a file before you upload to check its the correct format i.e. PDF, JPG etc.

I needed to do this for a recent PEN test of a webspeed app.

Christian.[View:/cfs-file/__key/communityserver-discussions-components-files/21/contentSniffer.p:320:240]

All Replies

Posted by Peter Judge on 16-Feb-2017 11:44

Magic!  ;)
 
 
Does the libgen.i  include just contain ABL too?
 
 

Posted by ezequielmontoya on 21-Feb-2017 09:58

Can you also attach libgen.i?

Posted by oedev on 24-Feb-2017 08:20

Excellent, thanks for sharing :-)

Just need the libgen.i as already mentioned.

Posted by christian.bryan@capita.co.uk on 05-Mar-2018 14:39

[View:/cfs-file/__key/communityserver-discussions-components-files/21/LIBGEN.I:320:240]

This thread is closed