hi i am trying to connect to php and get a file that is there and put it as a response for user to download it here is the code
$fileNameEndPoint = self::makeFilePathToName($fileName,$fileType,$fileId);
$ftp = new Filesystem(new Adapter([
'host' => $ftpData['host'],
'username' => $ftpData['username'],
'password' => $ftpData['password'],
'port' => $ftpData['host_port'],
'timeout' => '30', // timeout setting
]));
return $ftp->read($fileNameEndPoint);
the problem is i can get list of files in there but whene i try to get a certain file there is not found error can anyone please share a code with me .
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire