SSH SFTP Updater Support
[resolved] I Can't move file to sftp (4 posts)

  1. Happiness1
    Posted 2 years ago #

    Hi! I connected to the sftp. Connection exists, i've checked. Then I'm trying to move file to the sftp. Code is

    $sftp->move($local_filename, $server_filename)

    Where $local_file_name is local path to the file and $server_filename is '/'.

    Am I doing something wrong? Please advise something.


  2. Happiness1
    Posted 2 years ago #

    Ok, I figured more, and came a little closer to the answer.
    I want upload file(archive) to the sftp server.
    Code for now is:
    $content = $sftp->get_contents($filename);
    $sftp->put_contents($filename, $content);

    File has been transferred, but its size is "0". I can't get the content of the file. $sftp->get_contents($filename) returns nothing.

  3. TerraFrost
    Plugin Author

    Posted 2 years ago #

    If you're trying to use the SFTP library of this addon programmatically.. I think you'd be better of using phpseclib instead:


    It's what this addon uses for SFTP compatibility and, overall, that API is pretty well documented (imho).

  4. Happiness1
    Posted 2 years ago #

    Thanks, it's really helped!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • SSH SFTP Updater Support
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic