Fix small file upload using bigfile plugin

This commit is contained in:
shortcutme 2019-04-15 15:07:31 +02:00
parent 998ec3eb4f
commit b82f57e7a2
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -69,7 +69,7 @@ class UiRequestPlugin(object):
)
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)
site.content_manager.optionalDownloaded(inner_path, hash_id, upload_info["size"], own=True)