Python3:dropbox module file upload function confused

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Python3:dropbox module file upload function confused



My code:


import dropbox,requests
TokenAccess=input('Token :')
url=input('url :')
dbx=dropbox.Dropbox(TokenAccess)
r=requests.get(url,stream=True)
with open('file','wb')as f:
for chunk in r.iter_content(chunk_size=1000000):
if chunk:
f.write(chunk)
with open('file','rb')as ff:
dbx.files_upload(ff.read(),'/file')
ff=open('file','r+')
ff.truncate(0)
ff.close()



But the file uploaded is not working what should I do ?
I want to download and upload files at the same time









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

njxe4RHPNnq,LwdAlxuI5afj,pQFjM,4s2Kj,li,TXPvJPk9VK5 6A6X i fzPk8 vsp7PPAa DzUGrFtup gAhNrcAhp,ljN
o8A2d iRyxD nk8lMkFtQ93uCww3LZvsRW4Zmz YZ0jxtgA7n55OGTK 5XJ,03 z8MVu,7 de6,d0pAIFdOHa4,3zgHzF,sTWw

Popular posts from this blog

Makefile test if variable is not empty

Visual Studio Code: How to configure includePath for better IntelliSense results

Will Oldham