mega.py
mega.py copied to clipboard
Upload infinite loop
This code does not return anything, I'm getting infinite loop:
from mega import Mega
mega = Mega()
m = mega.login(email, password)
file = m.upload('myfile.doc')
print(file)
This thing does not work also:
# Upload a file to a destination folder
folder = m.find('my_mega_folder')
m.upload('myfile.doc', folder[0])
It finds the folder but goes into a loop in m.upload('myfile.doc', folder[0])
.
I found that uploading works very unstable. Sometimes it uploads quickly, sometimes it takes several minutes to upload 500 kB file on a very good internet connection.
Even I am having trouble. There is no way of knowing the progress of the file upload. And it is taking a lot of time.