Capture all file uploads and pass through scanner
Moderator: General Moderators
Capture all file uploads and pass through scanner
Hi, I am wondering is it possible with php to handle all file uploads, e.g using auto_prepend directive in php.ini, validate those files if ok or not, and invalidate them accordingly?
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Capture all file uploads and pass through scanner
I'm not sure what "e.g using auto_prepend directive in php.ini" means, but you can certainly use PHP to "handle all file uploads" and "validate those files if ok or not, and invalidate them accordingly".
FYI - Uploaded files are written to temporary filenames. If you don't explicitly move the uploaded files they will be deleted at the end of the request.
FYI - Uploaded files are written to temporary filenames. If you don't explicitly move the uploaded files they will be deleted at the end of the request.
(#10850)
Re: Capture all file uploads and pass through scanner
I mean like if I have hosting solution...with auto_prepend to run php script that does this transperant to applications.
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Capture all file uploads and pass through scanner
Certainly an auto_prepend script could check $_FILES and check/move any uploaded files.
(#10850)