Our clients upload TIFF images to our server. However, our app requires TIFF images of a particular resolution and compression.
This information is embedded in the TIFF header.
Is it possible for an iRule, or anything else on the F5, to read the TIFF header, and to reject the TIFF file if it is not what we require?
Also, if we reject, is there a way to inform the app on the server side that this file has been rejected?
Thank you kindly, in advance.
Certainly. iRules are a complete language, so essentially anything can be done.
Notifying the server might be problematic though.
Probably you'd be looking at something similar to:
Here, the server would get no notification of the invalid upload but you could log it for future auditing.
I have learned that the TIFF is embedded in xml, base64 encoded. Is it still possible to do this?
I know that the F5 can do xml validation. Could I do this as part of that function?
Thank you! This has been very helpful.