Error 3 on PHP $_FILES process

Hello,

I’m a free user on Webhost.

I’ve a website and I want to send a file from my home application with a ‘home made’ http request :

"POST /file.php HTTP/1.0\r\n"
"Host: xxxx.com\r\n"
"Content-type: multipart/form-data; boundary=\"Abcdefghijklmnopqrstuvwxyz\"\r\n"
"Content-Length:163\r\n"
"\r\n"
"--Abcdefghijklmnopqrstuvwxyz\r\n"
"Content-Disposition: form-data; name=\"file\"; filename=\"myfile.txt\"; content-Type:text/plain\r\n"
"\r\n"
"test"
"--Abcdefghijklmnopqrstuvwxyz--\r\n"
"\r\n"

I think the syntaxe is correct but when I execute the http request, my php script file send me back an Error 3 on my file.

Could you help me ?
Thanks you.

Error 3 means the file was only partially uploaded. This could be due in part to the size of the file you’re trying to upload. With that in mind, how large (in megabytes) is the file that you’re trying to upload?

Thanks

As you can see in my Post request. The file is 4 octets long…

So, 4MB? That shouldn’t be causing an issue with an upload. Maybe @teodor can take a look.