Uploaded.net cURL file upload

Status
Not open for further replies.

tacticsshow

Active Member
611
2012
158
160
Uploaded relies too much on javascript for its website functionalities. I am not too familiar with the language to translate this http://uploaded.net/js/script.js so I can get necessary info to perform an upload with Curl.

Can anybody help me? I am trying to write a batch script to automate file uploads using cURL.
 
Last edited:
4 comments
GET Request to https://uploaded.net/js/script.js
Search for variable "uploadServer"
should be something like
Code:
uploadServer = 'http://fra-7m22-stor05.uploaded.net/';

Make POST request with file to
Code:
%UploadServer%/upload?admincode=%Random Gabberish%&id=%UserID&pw=%PasswordHash%
Postdata
Filename=%FileName%
Upload=Submit Query

Where do i get my PasswordHash?
Easy , go to uploaded.net/me (log in ;) )
Sourcecode , and search for
PHP:
<input type="hidden" id="user_id" value="%USERID%" />
<input type="hidden" id="user_mail" value="your@mail.wtf" />
<input type="hidden" id="user_pw" value="%PAsswordHash%"
 
Thanks! Did you test this?

__________________
Added after 1 Day 16 Hours:

I tried it, it seemed that curl sent the file, but it never got to the file manager of Uploaded.net.

Code:
curl -F "file=@XXXXX.jpg;Filename=XXXXX.jpg" -F "Upload=Submit Query" "http://XXX-XXXX-XXXX.uploaded.net/upload?admincode=gibberish&id=XXXXXXXX&pw=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

Any thoughts on why it did not work?

__________________
Added after 22 Hours 42 minutes:

Seems like I am answering my own question.

Found out the correct way to do it:

Code:
[SIZE=3]curl -F "[COLOR=#0000ff][B]Filename[/B][/COLOR]=[COLOR=#ff0000][B]filename.zip[/B][/COLOR]" -F "[COLOR=#0000ff][B]Filedata[/B][/COLOR]=@[COLOR=#ff0000][B]filename.zip[/B][/COLOR]" -F "[B][COLOR=#0000ff]Upload[/COLOR][/B]=[COLOR=#0000ff][B]Submit Query[/B][/COLOR]" "http://[COLOR=#ff0000][B]XXX-XXXX-XXXXXX[/B][/COLOR].uploaded.net/upload?admincode=[B][COLOR=#ff0000]XXXXXX[/COLOR][/B]&id=[B][COLOR=#ff0000]XXXXXXXX[/COLOR][/B]&pw=[B][COLOR=#ff0000]XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX[/COLOR][/B]"[/SIZE]




__________________
Added after 12 minutes:

Also, one can specify the folder in file manager where their upload is going to be saved.

Just add "folder=XXXXXX" at the end of the code above, where XXXXXX is the folder ID. The folder ID is the XXXXXX in http://uploaded.net/manage#XXXXXX at the address bar of the browser when you browse a folder in your file Files & Folders.

__________________
Added after 11 minutes:

Sorry, it's -F "folder=XXXXXX". I forgot the -F option. And you can add it before the http://XXX... bit.
 
Last edited:
Very good starting point - does such a call respond with the ID of the file or will you still have to fetch the links / link ID seperately?

Concedu
 
Status
Not open for further replies.
Back
Top