Skip to content

Commit

Permalink
Bug: fix issue where previously uploaded file cannot be replaced
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Feb 16, 2024
1 parent ccbcdf2 commit e6d6d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydatalab/pydatalab/file_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def update_uploaded_file(file, file_id, last_modified=None, size_bytes=None):
updated_file_entry = File(**updated_file_entry)

# overwrite the old file with the new location
file.save(updated_file_entry["location"])
file.save(updated_file_entry.location)

ret = updated_file_entry.dict()
ret.update({"_id": file_id})
Expand Down

0 comments on commit e6d6d03

Please sign in to comment.