Skip to content

Commit

Permalink
501/supp api ndlp changes (#145)
Browse files Browse the repository at this point in the history
* ndlp filename metadata issue
  • Loading branch information
rohitpanwar authored Aug 22, 2023
1 parent aa625c1 commit 6de2212
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tus/file-hooks/upload-status/post_receive_bin.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ def post_receive(tguid, offset, size, metadata_json):

filename = None

if metadata.filename != None:
if metadata.filename is not None:
filename = metadata.filename
elif metadata.meta_ext_filename != None:
elif metadata.meta_ext_filename is not None:
filename = metadata.meta_ext_filename
elif metadata.original_filename != None:
elif metadata.original_filename is not None:
filename = metadata.original_filename

if filename is None:
Expand Down

0 comments on commit 6de2212

Please sign in to comment.