You are on page 1of 1

8/8/2018 NitroFlare - Upload Files

Upload File Buy Premium Earn money Support User Logout

General My Files Affiliate Reports FTP Upload My Account My Referrals Premium Access API

Upload API
 

You can upload a file with the following simple steps:
Get a server URL by a GET request to: http://nitroflare.com/plugins/fileupload/getServer
Send a POST request to the given server URL from previous step, with the following parameters:  
user [User hash which you can find here.]  
files [A location to your local file]
 

cURL Example:
curl \
-F "user=aa9201c9437878583820ba04bd16c94f8729f6da" \
-F "files=@myfile.zip" \
$(curl http://nitroflare.com/plugins/fileupload/getServer)

PHP Example:
<?php
$target_url = file_get_contents('http://nitroflare.com/plugins/fileupload/getServer');

$file = realpath('myfile.zip');
$post = array('files' => curl_file_create($file), 'user' => 'aa9201c9437878583820ba04bd16c94f8729f6da');

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$target_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec ($ch);
curl_close ($ch);

var_dump(json_decode($result));

NitroFlare.com is an international service for safe file transfer, storage, backup, and distribution.
The speed of our servers, all of them working on several gigabyte connection links, is nearly unlimited.
Today there are no similar services that can offer our level of quality.
Nitroflare is the best and fastest service for uploading, storing, and safe sharing of your files on the internet.

Affiliates FAQ |  Copyright / DMCA |  Terms of Service |  Privacy Policy |  Refund Policy |  Contact © All rights reserved NitroFlare

                 

https://nitroflare.com/member?s=upload-api 1/1

You might also like