Rev3403, Fix uploading small files with bigfile plugin
This commit is contained in:
parent
75861db84b
commit
c703458e00
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue