M
MarkS
Guest
I've got a on my webpage to allow users to upload a file. However I want to check that what they upload is only a certain format - don't want them uploading .exe etc. I could check the extension but this is easily changed. I've found the WEB-CONTEXT:FORM-INPUT function which returns the Content-Type of a file amongst other data. However if I have more than one on my page it only returns the content type of the first file uploaded. The output from WEB-CONTEXT:FORM-INPUT just ends with the line "PK" after the first file upload is reached. So I can't get the content type of any other files uploaded. ------WebKitFormBoundarylM1QuaIrrKYWZjfB Content-Disposition: form-data; name="q1File"; filename="cv.docx" Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document PK Is this the right thing to do to check for file type? If so what's happening with the output from WEB-CONTEXT:FORM-INPUT? (OpenEdge 10.2b) Thanks Mark
Continue reading...
Continue reading...