Skip to content
WJunction - Webmaster Forum

PHP Upload function for sharedbit.net help

Status
Not open for further replies.
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.

About the author

T
Active Member · Joined
1,419
Messages
183
Reactions
63
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom