Update to file upload method