Hello guys i'am trying to send a file to my server using php
i tried the following
the following code is working but i'am always getting the file names as "FileName"
WHY php is not recognizing the file name ??
can i send the file name with the file as an extra parameter ?
PS: i'am using httputlis2 post file to send it to the php
i tried the following
B4X:
<?php
$FileName = $_GET['FileName'];
if (!$FileName)
$FileName = "FileName";
if (strstr($FileName,"php"))
return;
$PostData = file_get_contents("php://input");
$File = fopen($FileName,"wb");
fwrite($File, $PostData);
fclose($File);
echo "ACK";
?>
the following code is working but i'am always getting the file names as "FileName"
WHY php is not recognizing the file name ??
can i send the file name with the file as an extra parameter ?
PS: i'am using httputlis2 post file to send it to the php