Reputation: 2642
I use this simple PHP code for uploading a file to mega.nz cloud, and the code works correctly.
the code return an array like this:
h => GxsyWLTK
t => 0
a => KxaM1xBhlW8oAc1zECKfnk7uSulGtHy0FKagNNF2iFo
k => 6ffMqPn8b0Y:fsN980rUUZhmDNBnDZM7PjM2S5rQe-7oTjLVbssQ2F4
p => jwsyAbxY
ts => 1422434349
u => 6ffMqPn8b0Y
s => 30751
but i want to know: how i can get download link of the uploaded file that is like this link? https://mega.nz/#!SttF0BiC!BXQIrgxB9Q5qWmccdjMnsISUCyRV4Hr6f-v5RjQxB_w
Upvotes: 2
Views: 6842
Reputation: 137
The result contains, for each node, the the following informations:
h: The ID of the node ; --> <ID-NODE>
p: The ID of the parent node (directory) ;
u: The owner of the node ;
t: The type of the node:
0: File
1: Directory
2: Special node: Root (“Cloud Drive”)
3: Special node: Inbox
4: Special node: Trash Bin
a: The attributes of the node. Currently only contains its name.
k: The key of the node; --> <KEY-NODE>
s: The size of the node ;
ts: The time of the last modification of the node
General Mega download link:
https://mega.nz/#! <ID-NODE> ! <KEY-NODE>
Example (with your data):
https://mega.nz/#!GxsyWLTK!6ffMqPn8b0Y:fsN980rUUZhmDNBnDZM7PjM2S5rQe-7oTjLVbssQ2F4
Hope this helps.
Upvotes: 1