add file upload method