tamar-file-hub-client 0.0.2__py3-none-any.whl → 0.0.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -428,6 +428,8 @@ class SyncBlobService(BaseFileService):
428
428
  else:
429
429
  # 解析文件参数,提取文件信息
430
430
  extracted_file_name, content, file_size, mime_type, file_type, file_hash = self._extract_file_info(file)
431
+ if not file_name:
432
+ mime_type = get_file_mime_type(extracted_file_name)
431
433
 
432
434
  # 根据文件大小自动选择上传模式
433
435
  if mode == UploadMode.NORMAL:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tamar-file-hub-client
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: A Python SDK for gRPC-based file management system
5
5
  Home-page: https://github.com/Tamar-Edge-AI/file-hub-client
6
6
  Author: Oscar Ou
@@ -32,7 +32,7 @@ file_hub_client/services/file/__init__.py,sha256=aJygo_AzYk5NN-ezp-a9YlugJ82wVIP
32
32
  file_hub_client/services/file/async_blob_service.py,sha256=jcuQm6mBTZI82PxGNxYDf0q-K1GgiPnncnP0TQrK0lM,20129
33
33
  file_hub_client/services/file/async_file_service.py,sha256=QxVfwPoJe_oj8t7EOLHMQF3PQf4E1-HctQR7yvY9D3g,8585
34
34
  file_hub_client/services/file/base_file_service.py,sha256=wTxplrTk9klfwIHOPfTL0TQd6gX4nEmkYtIhpiZ3GVo,4791
35
- file_hub_client/services/file/sync_blob_service.py,sha256=k_n-PgpEM3Pnd5qv34QSuuf9utnTayB6c3ziXe7vIhY,19872
35
+ file_hub_client/services/file/sync_blob_service.py,sha256=mN3YAjaOx7zliU6Nf2jMpHXiTOiDlAHHUKtZ7WgCKww,19970
36
36
  file_hub_client/services/file/sync_file_service.py,sha256=i1pLCcGNWMlWQfAW4dlhLsEiV3oc1jXKmKax35k0CGw,8439
37
37
  file_hub_client/services/folder/__init__.py,sha256=vGbMOlNiEBdnWZB1xE74RJtoroI28hKHCWfQV1GqKQc,210
38
38
  file_hub_client/services/folder/async_folder_service.py,sha256=uFEmtW8EXYvaKYT2JCitWbdTGR1EtHlx_eBN5P3JUZg,7293
@@ -51,7 +51,7 @@ file_hub_client/utils/logging.py,sha256=W32_goFF7_tVN_hCfe85smPu2lHW0jPs_AGlSIYS
51
51
  file_hub_client/utils/retry.py,sha256=PybdlGEdYdjeCPBg5JfKoKHsRxAIy24v5oyIeYQAg9U,12693
52
52
  file_hub_client/utils/smart_retry.py,sha256=RjBhyG6SNDfMXxNxKU_qayWDD6Ihp7ow6_BPjhgflM0,16465
53
53
  file_hub_client/utils/upload_helper.py,sha256=gEtn9OXVJiGUpVev_fqrDnRQ6AFiiP9goLzFrVpqXmU,22569
54
- tamar_file_hub_client-0.0.2.dist-info/METADATA,sha256=oOMNHP5FWhNi-thRbgZRzHdB3PldCuwcyjACzvDIcFw,64873
55
- tamar_file_hub_client-0.0.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
56
- tamar_file_hub_client-0.0.2.dist-info/top_level.txt,sha256=9wcR7hyAJQdJg_kuH6WR3nmpJ8O-j8aJNK8f_kcFy6U,16
57
- tamar_file_hub_client-0.0.2.dist-info/RECORD,,
54
+ tamar_file_hub_client-0.0.3.dist-info/METADATA,sha256=lin3JH7pNTue4fenGtEu9NjJav5zacn8h1_bohhuOQI,64873
55
+ tamar_file_hub_client-0.0.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
56
+ tamar_file_hub_client-0.0.3.dist-info/top_level.txt,sha256=9wcR7hyAJQdJg_kuH6WR3nmpJ8O-j8aJNK8f_kcFy6U,16
57
+ tamar_file_hub_client-0.0.3.dist-info/RECORD,,