-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request : Able to generate public link for a folder #18
Comments
Which backend are you talking about?
|
Not really trying to use this through I'll give an example of what I meant when I said folder node does not generate a valid public link. Here I have a test account with one File and one Folder. Now I try to export both the File and Folder for public download using the I use the following code (paraphrased) -
The above code return me the following -
Now I will export the link for both of them from the browser and this is what I get -
You can see that the file link is correct but the Folder links differ in their Decryption Keys. Correct folder also has the format like Since After looking into the But after observing the api requests in the browser while exporting Folder links, you can clearly see that different procedures are followed for exporting Files and Folders in Mega API. Unfortunately I couldn't exactly figure out how the Folder exporting API works, otherwise I was going to implement it myself and make a pull request. |
Sorry, I thought I was responding to an rclone bug report!
Ah... This library has been 100% reverse engineered (there are no specs for the API) so a bit of sleuthing will be required to fix this. Here is the relevant code in the C++ SDK https://github.com/meganz/sdk/blob/7e38fe118ddb0fc0a83f90a7032a95ea39a83a47/src/megaclient.cpp#L9529 Can you figure out what it is doing? |
Currently the folder node does not generate a valid public link. I think it would be useful feature to be able to export folders.
I have tried to do this myself but there's little to no directions on how to use the API to implement something like this.
In case you do not want to include this feature in the library, any hints regarding how it could be done is also appreciated.
The text was updated successfully, but these errors were encountered: