meganz / MEGAcmd

Command Line Interactive and Scriptable Application to access MEGA
Other
1.92k stars 406 forks source link

Get admin link for shared directory (export) #732

Open leparkour opened 1 year ago

leparkour commented 1 year ago

Hi!

There was a problem with accessing the directory via CMD Mega/ API

Using the export / mega-export method, we get such a link to the directory

https://mega.nz/folder/XxXxXxX#KEYXxXxXxXxXx

Further, through the share / mega-share method, we provide another user with read and write access to the directory.

But when a user who has been granted access follows the link https://mega.nz/folder/XxXxXxX#KEYXxXxXxXxXx, he can only download files. It is impossible to upload them, there is no access.

At the same time, if the user finds the desired directory through the "Shared Folders", then the link to this directory already looks like https://mega.nz/fm/yYyYyYyY and now you can upload files there.

The question is how you can get a link like "https://mega.nz/fm/yYyYyYyY" in order to provide it to the user. so that he can go through it and upload files there. Is there an API for this?

jx-mega commented 1 year ago

The fm links are the account's file manager references, not public links. The public links you exported only grant the receiver with read-only access. If you want the recipient to be able to navigate and upload files, you will have to include them in your shared folder.

leparkour commented 1 year ago

How get this link from mega-cmd ?

чт, 3 лист. 2022 р. о 18:33 Khumi @.***> пише:

The fm links are the account's file manager references, not public links. The public links you exported only grant the receiver with read-only access. If you want the recipient to be able to navigate and upload files, you will have to include them in your shared folder.

— Reply to this email directly, view it on GitHub https://github.com/meganz/MEGAcmd/issues/732#issuecomment-1302372990, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF7K3BLEEWDDVND2C5XVGBLWGPSPHANCNFSM6AAAAAARUGIAUA . You are receiving this because you authored the thread.Message ID: @.***>

polmr commented 1 year ago

Exported links, and shared folders are different unrelated functionality.

Shared folders need to be accessed though Shared Items -> Folders in webclient, or if you want to use MEGAcmd, see mega-mount --help

Exported links are read-only, and even if you create a link of a folder the you have previously shared with some other user, that link is completely unrelated to the sharing.