Код: Выделить всё
Storage::build([
'driver' => 'ftp',
'host' => $ftphost,
'ssl' => true,
'port' =>$ftpport,
'username' => $ftpuser,
'password' => $ftppass,
])->writeStream($filename, $execution->disk()->readStream($sourcefilename));
League ftp передает примерно следующее:
Код: Выделить всё
if ( ! ftp_fput($this->connection(), $location, $contents, $this->connectionOptions->transferMode())) {
throw UnableToWriteFile::atLocation($path, 'writing the file failed');
}
если я использую FTP-клиент, например filezilla, я смогу передать файл .xml< /p>
Есть идеи?
Может быть, проблема с настройкой FTP-сервера?
Подробнее здесь: https://stackoverflow.com/questions/790 ... implementa