mega.py icon indicating copy to clipboard operation
mega.py copied to clipboard

Does not provide a public link to the file

Open LilBtr opened this issue 2 years ago • 1 comments

The second line of this code did not display a link in the terminal

m.get_upload_link(file)

LilBtr avatar Apr 11 '22 11:04 LilBtr

Hey, Super late response and hopefully you've sorted it out yourself, have you tried this?

You need to assign it to a variable and then print the variable to display it in console:

file = m.upload('path_to_file')
linkname = m.get_upload_link(file)

print (linkname)

N4GR avatar Jun 07 '22 19:06 N4GR