Ok, looking at the docs for php's $_FILES, I see that:
$_FILES['uploaded']['image']
is wrong, it should be one of:
$_FILES['image']['name'] for the original filename
$_FILES['image']['tmp_name'] for the temporary uploaded filename
Also, seems I missed something, you need to add a "Content-length: xxx" line after the first "content-type: yyy" line, with the size in bytes of all the data you're sending after the first blank line.
The size should be:
(3x"--")+(2xlength of boundary string)+(length of the content-disposition line)+(4xlength of Moosock's end-line symbols, probably 2, could be 1)+(size of the file)
SENDLINE: "Content-length: "+str$(3*len("--")+2*len("AaB03x@:&%CCCds")+len("content-disposition: form-data; name=""file""; filename="""+EditText$("Edit")+"""")+4*2+filesize)
EDIT: Yup, I just sent the following using telnet:
Code:
POST /games/battles/upload.php HTTP/1.1
Host: www.flufferfluff.com
Content-type: multipart/form-data, boundary=AaB03x@:&%CCCds
Content-length: 133
--AaB03x@:&%CCCds
content-disposition: form-data; name="image"; filename="testing.txt"
ABC_TESTING_TESTING
--AaB03x@:&%CCCds--
and your server came back with:
Code:
HTTP/1.1 200 OK
Date: Thu, 15 May 2008 09:13:48 GMT
Server: Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8g DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
X-Powered-By: PHP/5.2.6
Content-Length: 0
Content-Type: text/html
"200 OK" means success, it worked.