Hi. I got this script using winhttp to upload files to a webserver using a php file.
The problem is, it will only upload small files for some reason.
If the file is example 100 kb, it works fine, if the file is 3 mb, then the scripts stops, and it never gets uploaded (and it works just fine uploading via the php form directly, so it's the script that got a problem)
even I tell it to start uploading "pictures1" witch is 3 mb, first, then it skips it, and only uploads "pictures2" witch is 100 kb.
#include "WinHttp.au3"
Global Const $sAddress = "ajoko.com"
$subdomain = "log/index.php"
$1 = ("pictures1.zip") ;upload 1
$2 = ("pictures2.zip") ;upload 2
Global $hOpen = _WinHttpOpen()
Global $hConnect = _WinHttpConnect($hOpen, $sAddress)
Global $sHTM = _WinHttpSimpleFormFill($hConnect, $subdomain, Default, "name:ufile", $1) ;upload 1
Global $sHTM = _WinHttpSimpleFormFill($hConnect, $subdomain, Default, "name:ufile", $2) ;upload 2
_WinHttpCloseHandle($hConnect)
_WinHttpCloseHandle($hOpen)
;php upload form: www.ajoko.com/log/index.php
I attached winhttp WinHttp.au3 WinHttpConstants.au3