Working Fix for file upload