Fixed strict errors generated during file upload