I am uploading XML file using $ftp->write function.

And in that function where I can pass a directory path where I want to upload my file on server?

Please advise

  • Please share what you have tried so far. Otherwise people will mark your question unclear. – Mohit Kumar Arora Oct 9 '19 at 11:42
  • I have created custom XML file into a local server and connect FTP using programmatically in Magento 2 Now I want to upload that generated xml file into FTP server in specific locaation. File successfully uploaded into root directory but I need to upload in a particular directory How I can archive this? – Arti patel Oct 9 '19 at 11:49
  • Please advice for the above question – Arti patel Oct 10 '19 at 12:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.