Jdeveloper 11.1.1.7.0
Hi
We are using an af:InputFile object to upload files to our database. This works correctly.
We have now been tasked to verify that the file extension corresponds to file contents.
One "test" we have to pass is the renaming of files to another file type.
ex. A command file name testcmd.pdf or an exe file name testexe.pdf etc.
After various test using Files.probeContentType, MimetypesFileTypeMap etc. we came across Apache Tika
The most reliable method out of all options is the Tiak detect method which uses a mix of the file extension and the
file contents however it needs the complete file path.which af:InputFile does not have.
Does anybody have an experience using apache Tika deect method and anaf:InputFile ?
Regards
Paul