Use WUPLOAD API:

You might be having fso with there api, just change the user/pass and link and everything else should be same :)


I just did teh homework for you so no need of above:

PHP Code: 
<?php

// Wupload Plugin using there API by Soft2050

$wuuser 'myusername';
$wupass 'mypass';

function 
wuploadup($filename$username$password) {

    
$geturld file_get_contents("http://api.wupload.com/upload?method=getUploadUrl&u=$username&p=$password&format=xml");
    
    
preg_match('/(http:\/\/.*?format=xml)/i'$geturld$matches); // Ahh You could make teh regex better but this was one which works fine and was easy too
    
    
$upurl $matches[0];
    
    
$post = array('files[]' => "@$filename");
    
    
$ch curl_init();
    
curl_setopt($chCURLOPT_URLtrim($upurl));
    
curl_setopt($chCURLOPT_POST1);
    
curl_setopt($chCURLOPT_FOLLOWLOCATION1);
    
curl_setopt($chCURLOPT_POSTFIELDS$post);
    
curl_setopt($chCURLOPT_RETURNTRANSFER1);
    
$getresult curl_exec($ch);
    
curl_close($ch);
    
    
preg_match('/\<url\>(.*?)\<\/url\>/i'$getresult$matches); // Ahh You could make teh regex better but this was one which works fine and was easy too
    
    
$resulturl $matches[0];
    
    return 
$resulturl;

}

echo 
wuploadup'myfilelink'$wuuser$wupass);

?>
I also tested it and it works:

soft2050 Reviewed by soft2050 on . wupload upload plugin asap hey mates, i need help coding an upload plugin for wupload, every time i make a call, it gives me HTTP/1.1 411 Length Required i need help asap, thanks in advance. Rating: 5