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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue