mirror of
https://github.com/clearml/clearml
synced 2025-01-31 17:17:00 +00:00
Fix only preview filename and not full path when uploading a single artifact file
This commit is contained in:
parent
7ec0691910
commit
107779f45a
@ -588,7 +588,7 @@ class Artifacts(object):
|
|||||||
|
|
||||||
override_filename_in_uri = artifact_object.parts[-1]
|
override_filename_in_uri = artifact_object.parts[-1]
|
||||||
artifact_type_data.preview = preview or '{} - {}\n'.format(
|
artifact_type_data.preview = preview or '{} - {}\n'.format(
|
||||||
artifact_object, format_size(artifact_object.stat().st_size))
|
artifact_object.name, format_size(artifact_object.stat().st_size))
|
||||||
artifact_object = artifact_object.as_posix()
|
artifact_object = artifact_object.as_posix()
|
||||||
artifact_type = 'custom'
|
artifact_type = 'custom'
|
||||||
artifact_type_data.content_type = mimetypes.guess_type(artifact_object)[0]
|
artifact_type_data.content_type = mimetypes.guess_type(artifact_object)[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user