2
Когда я отправил изображение в код ниже, uploadImage.php через метод POST, как добавить параметр String?Добавить параметр в PHP
<?php
$hasError = false;
foreach($_FILES as $i=>$file)
{
if ($file['error'])
{
$hasError = true;
}
}
if (! $hasError)
{
$myFilePath = '_uploads/'.'_'.$file["name"];
$dta = file_get_contents($file['tmp_name']);
file_put_contents($myFilePath, $dta);
}
else
{
echo('Stick custom error message here');
}
?>
.. .Как вы добавляете параметр строки где? –