Fix small file upload using bigfile plugin
This commit is contained in:
parent
998ec3eb4f
commit
b82f57e7a2
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ class UiRequestPlugin(object):
|
||||||
)
|
)
|
||||||
|
|
||||||
if len(piecemap_info["sha512_pieces"]) == 1: # Small file, don't split
|
if len(piecemap_info["sha512_pieces"]) == 1: # Small file, don't split
|
||||||
hash = binascii.hexlify(piecemap_info["sha512_pieces"][0].encode())
|
hash = binascii.hexlify(piecemap_info["sha512_pieces"][0])
|
||||||
hash_id = site.content_manager.hashfield.getHashId(hash)
|
hash_id = site.content_manager.hashfield.getHashId(hash)
|
||||||
site.content_manager.optionalDownloaded(inner_path, hash_id, upload_info["size"], own=True)
|
site.content_manager.optionalDownloaded(inner_path, hash_id, upload_info["size"], own=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue