Rev3403, Fix uploading small files with bigfile plugin

This commit is contained in:
shortcutme 2018-04-04 10:24:38 +02:00
parent 75861db84b
commit c703458e00
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@ class UiRequestPlugin(object):
if len(piecemap_info["sha512_pieces"]) == 1: # Small file, don't split
hash = piecemap_info["sha512_pieces"][0].encode("hex")
hash_id = self.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)
else: # Big file

View file

@ -10,7 +10,7 @@ class Config(object):
def __init__(self, argv):
self.version = "0.6.2"
self.rev = 3402
self.rev = 3403
self.argv = argv
self.action = None
self.config_file = "zeronet.conf"