i'm using httpUtils to post file to my php script:
and the b4a code
every thing is working fine but i cant find a way to upload the file with a specific file name
i don't always want the name to be "test.mp3" how can i control the name from b4a ?
PHP:
<?php
$PostData = file_get_contents("php://input");
$File = fopen("test.mp3","wb");
fwrite($File, $PostData);
fclose($File);
?>
and the b4a code
B4X:
uploader.PostFile(url & "/1.php",File.DirInternal,"test.mp3")
every thing is working fine but i cant find a way to upload the file with a specific file name
i don't always want the name to be "test.mp3" how can i control the name from b4a ?