Fixed a problem that was causing errors in batch uploading remote files.
This commit is contained in:
parent
e00ce53ef6
commit
7ff99dabfb
@ -151,7 +151,7 @@ zip files and directories"
|
||||
filename = url.path.split()[-1]
|
||||
|
||||
if url.scheme == 'http':
|
||||
res = requests.get(url.geturl())
|
||||
res = requests.get(url.geturl(), stream=True)
|
||||
media_file = res.raw
|
||||
|
||||
elif url.scheme == '':
|
||||
|
Loading…
x
Reference in New Issue
Block a user