I am writing a software that automatically upload a file on speedtest server using this code
function OnStart()
{
app.UploadFile( "
http://speedtest.tele2.net/upload.php", "/sdcard/temp/", '1M.zip" , OnUpload );
}
function OnUpload( error, file, result )
{
if(error) app.Alert( "Upload Failed!" )
else app.ShowPopup( "Response:\n" + result, "Upload Successful!" );
}
but it is showing upload failed error while doing this through php or python is working perfectly means no error in upload url can anyone guide me where I am mistaking ?