2

I want to know when I upload file in C# with this code:

Please check code from here

Usage:

NameValueCollection nvc = new NameValueCollection();
nvc.Add("id", "TTR");
nvc.Add("btn-submit-photo", "Upload");
HttpUploadFile("http://your.server.com/upload", @"C:\test\test.jpg", "file", "image/jpeg",
    nvc);

After that how can I get file in PHP?

I know I can get value from POST and GET, but how to get File and save that in server?

I know how to save file in server but I can't find any parameters in POST or GET for get file.

GET parameters: $_GET['link']; or for POST: $_POST['link'];

What parameters for FILE?

Community
  • 1
  • 1
MrUnknow
  • 359
  • 3
  • 18

1 Answers1

1
print_r($_FILES);

and example how upload: https://www.w3schools.com/php/php_file_upload.asp

Change only "fileToUpload" to correct from $_FILES

  • Multiple files upload https://github.com/fxstar/PhpJsCss/blob/master/multiupload.php –  Feb 26 '17 at 20:32