Невозможно загрузить файл через Curl и PHPPhp

Кемеровские программисты php общаются здесь
Гость
Невозможно загрузить файл через Curl и PHP

Сообщение Гость »


Я пытаюсь загрузить файл на сервер с помощью Curl и PHP.
Команда Curl:

Код: Выделить всё

curl -d userfile=C:\myfile.dat --data-binary @C:\myfile.dat -H 'multipart/form-data' http://127.0.0.2/upload-file.php
and the upload-file.php is: But the upload always fail. The PHP code is copied from the sample in https://www.php.net/manual/en/features. ... method.php


Источник: https://stackoverflow.com/questions/781 ... rl-and-php

Вернуться в «Php»