interface for upload file. error on uploading.