File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2905,7 +2905,7 @@ async def files_upload(
29052905 }
29062906 )
29072907 if file :
2908- if "filename" not in kwargs and isinstance (file , str ):
2908+ if kwargs . get ( "filename" ) is None and isinstance (file , str ):
29092909 # use the local filename if filename is missing
29102910 if kwargs .get ("filename" ) is None :
29112911 kwargs ["filename" ] = file .split (os .path .sep )[- 1 ]
Original file line number Diff line number Diff line change @@ -2848,7 +2848,7 @@ def files_upload(
28482848 }
28492849 )
28502850 if file :
2851- if "filename" not in kwargs and isinstance (file , str ):
2851+ if kwargs . get ( "filename" ) is None and isinstance (file , str ):
28522852 # use the local filename if filename is missing
28532853 if kwargs .get ("filename" ) is None :
28542854 kwargs ["filename" ] = file .split (os .path .sep )[- 1 ]
Original file line number Diff line number Diff line change @@ -2859,7 +2859,7 @@ def files_upload(
28592859 }
28602860 )
28612861 if file :
2862- if "filename" not in kwargs and isinstance (file , str ):
2862+ if kwargs . get ( "filename" ) is None and isinstance (file , str ):
28632863 # use the local filename if filename is missing
28642864 if kwargs .get ("filename" ) is None :
28652865 kwargs ["filename" ] = file .split (os .path .sep )[- 1 ]
You can’t perform that action at this time.
0 commit comments