joplin-notes/joplin notion extension/Web Development/API/mediafire.md
2026-11-04 00:33:23 +05:30

1.1 KiB

mediafire

Steps

  1. Get a session token. Note : Session token will be expired after a couple period of time so is cookie so need to generate them again, means somehow automate login.

  2. Using it to get folders and files info of root directory for folder and files content 2 api api is called and eveyrthing is same in request body except content-type request body is of form-data, files one will give the sharable link too folderkey field contains key of parent folder, root one is basically 'myfiles'.

  3. for uploadfile, it will check the folder where it is uploaded and quickkey of folder will be there too in response, then it will upload as application/octlet-stream, and will send filehash too in headers which is of sha256sum. After the resulable upload api, key will be get which will be used for next poll upload thing

  4. for getting sharable link : : "https://www.mediafire.com/file/7mpw92w27etlaex/Restfox-main.zip/file" . so format is https://www.mediafire.com/file/<quick_key>/<filename>/file or just until quick_key is enough too