fixed issues with file upload on production