add new approach for uploading files