11-12-2021, 11:58 AM
Hi,
as a security measure we are using TIWFileUploader.CheckMimeType() in one of our web applications for checking files uploaded for data import. Now I am making the data import available in another non-IntraWeb application (an API server). Even if this is not a web application, is there any way to include the relevant IW unit(s)/component(s) and perform the same check? Note: I see that the above is a class method, but does not take a file name parameter; instead it seems to get it's data from the web application somehow. We are currently using IW 15.1.15 in production.
Best regards
Magnus Oskarsson
as a security measure we are using TIWFileUploader.CheckMimeType() in one of our web applications for checking files uploaded for data import. Now I am making the data import available in another non-IntraWeb application (an API server). Even if this is not a web application, is there any way to include the relevant IW unit(s)/component(s) and perform the same check? Note: I see that the above is a class method, but does not take a file name parameter; instead it seems to get it's data from the web application somehow. We are currently using IW 15.1.15 in production.
Best regards
Magnus Oskarsson