Skip to content

Commit 5fb5ed4

Browse files
committed
adding user_id to bucket path
1 parent 2170797 commit 5fb5ed4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

python/fedml/api/modules/storage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ def upload(data_path, api_key, name, description, tag_list, service, show_progre
7070
if not to_upload_path:
7171
return FedMLResponse(code=ResponseCode.FAILURE, message=message)
7272

73-
73+
#TODO(bhargav191098) - Better done on the backend. Remove and pass file_name once completed on backend.
7474
dest_path = os.path.join(user_id, file_name)
7575
file_size = os.path.getsize(to_upload_path)
7676

77-
file_uploaded_url, message = _upload_multipart(api_key, file_name, to_upload_path, show_progress,
77+
file_uploaded_url, message = _upload_multipart(api_key, dest_path, to_upload_path, show_progress,
7878
out_progress_to_err,
7979
progress_desc, metadata)
8080

0 commit comments

Comments
 (0)