diff --git a/bynder_sdk/client/upload_client.py b/bynder_sdk/client/upload_client.py index f4d7678..2523bf6 100644 --- a/bynder_sdk/client/upload_client.py +++ b/bynder_sdk/client/upload_client.py @@ -31,7 +31,7 @@ def _run_s3_upload(self, file_path): total_parts = math.ceil( os.stat(f.fileno()).st_size / MAX_CHUNK_SIZE) - filename = file_path.rsplit('/', 1)[-1] + filename = os.path.basename(file_path) build_part_data = self._init_upload(filename, total_parts) part_bytes = f.read(MAX_CHUNK_SIZE)