working on file upload method