Skip to content

Commit

Permalink
Updating PR
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyg-cld committed Nov 5, 2024
1 parent 7114274 commit ffd5285
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cloudinary_cli/utils/api_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ def upload_file(file_path, options, uploaded=None, failed=None):
verbose = logger.getEffectiveLevel() < logging.INFO

try:
size = path.getsize(file_path)
if not file_path.startswith('http'):
size = path.getsize(file_path)
else:
size = 0
upload_func = uploader.upload
if size > 20000000:
upload_func = uploader.upload_large
Expand Down

0 comments on commit ffd5285

Please sign in to comment.