Our API is only available for registered users
POST VARIABLES :
user = your login
pass = your password
local_directory = directory containing the file Ex: /var/www/
filename = name of the file you want to upload
die('Sorry cURL is not installed!');}
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_REFERER, "http://www.exoshare.com/");
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:220.127.116.11) Gecko/20061204 Firefox/18.104.22.168");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
$post_array = array(
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_array);
$output = curl_exec($ch);
You can setup your filehosts accounts and we will send files direct to your file hosting account (example: Putting a rapidgator account will result every file you host to be sent to your OWN rapidgator account) .
On Exoshare, we are always looking for user's best experience, you can upload your files via variety of methods,we offer direct upload , remote upload , flash upload , api upload, an upload box and z-o-o-m FileUploader support.
You can set your preferred filehosts on your account, we will send files to them even when you use another upload method! FileUploader is also supported.
Our codes are based on dual upload type , php and python upload types. If one of them fails to upload , we will try automatically the other process.