Hello dear users!
It is required to upload a file (file.bin) to the POST script with a C # request. I don’t even have to talk about file uploading on FTP; I will be glad to any help.
PHP script itself:
<?php $file1 = $_FILES['data']['tmp_name']; $name = basename($_FILES['data']['name']); $dir1 = mkdir('up/'); $dir='up/'; $id=$_POST['data2']; if (!file_exists($file1)) { echo "ERROR"; } else { move_uploaded_file($file1, $dir.$name); echo "OK <br>"; echo $id; } ?> Thanks in advance!