Shaman: Include original filename when uploading file
This commit is contained in:
parent
a2f9a7b484
commit
7a7304d7a3
@ -262,8 +262,10 @@ class ShamanTransferrer(bat_transfer.FileTransferer):
|
|||||||
fileinfo = self._file_info[path]
|
fileinfo = self._file_info[path]
|
||||||
self.log.info(' %s', path)
|
self.log.info(' %s', path)
|
||||||
|
|
||||||
|
headers = {
|
||||||
|
'X-Shaman-Original-Filename': path,
|
||||||
|
}
|
||||||
# Let the Shaman know whether we can defer uploading this file or not.
|
# Let the Shaman know whether we can defer uploading this file or not.
|
||||||
headers = {}
|
|
||||||
can_defer = (len(deferred_paths) < MAX_DEFERRED_PATHS
|
can_defer = (len(deferred_paths) < MAX_DEFERRED_PATHS
|
||||||
and path not in deferred_paths
|
and path not in deferred_paths
|
||||||
and len(to_upload))
|
and len(to_upload))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user