PHP Upload function for sharedbit.net help

Status
Not open for further replies.

t3od0r

Active Member
1,419
2008
183
10
I am trying to make an upload function for https://sharedbit.net/

i get the upload url from

PHP:
$page = curl_func_sharedbit("https://sharedbit.net/upload-process/upurl",'',$cookie,$ref,0);

and post to

PHP:
$fi = randoms(43);
    $fpost = array();
    $fpost["name"] = $fi;
    $fpost["file"] = "@".$filelocation;
    
    $page = curl_func_sharedbit($upurl,$fpost,$cookie,$ref);

response is

Code:
{"jsonrpc" : "2.0", "result" : null, "id" : "id"}

what i am missing here?
 
2 comments
You are going on all right, the result you are getting is the same which i am getting from browser.
To get the url, you need to send another request to: https://sharedbit.net/upload-process/completed
And post this data there:

PHP:
server=$upurl&folder=0&files[0][id]=$fi&files[0][name]=filename of file uploading with extension&files[0][size]=filesize in bytes&files[0][loaded]=filesize in bytes&files[0][percent]=100&files[0][status]=5&files[0][target_name]=$fi + extension of the file
It should return the information about file link, delete link and other info
 
Status
Not open for further replies.
Back
Top