fixes the reusable file upload problem