Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

C# http post request with file

// Example to how you could handle it in PHP
echo $_POST['firstName'];
$name = $_POST['firstName'];
$image = $_FILES['profilePicture'];
$ds = DIRECTORY_SEPARATOR;
move_uploaded_file($image['tmp_name'], realpath(dirname(__FILE__)) . $ds . "uploads" . $ds . $image['name']);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #http #post #request #file
ADD COMMENT
Topic
Name
4+2 =