mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 00:03:45 +08:00
upload can only create (#21513)
old-commit-hash: d066b8f7e813894338b2747c74ad089968ff70e9
This commit is contained in:
@@ -176,7 +176,7 @@ class Uploader():
|
||||
else:
|
||||
cloudlog.debug("uploading %r", fn)
|
||||
stat = self.normal_upload(key, fn)
|
||||
if stat is not None and stat.status_code in (200, 201, 412):
|
||||
if stat is not None and stat.status_code in (200, 201, 403, 412):
|
||||
cloudlog.event("upload_success" if stat.status_code != 412 else "upload_ignored", key=key, fn=fn, sz=sz, debug=True)
|
||||
try:
|
||||
# tag file as uploaded
|
||||
|
||||
Reference in New Issue
Block a user