Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PlatformException(upload_failure, The file path does not exist or is invalid., null, null) #22

Open
brahimmasmudi opened this issue Jun 5, 2023 · 0 comments

Comments

@brahimmasmudi
Copy link

brahimmasmudi commented Jun 5, 2023

Hello , i'm using this package to upload files from my local directory to the SFTP server , however even tho the files exist and have read write permissions , for some reason i have a 'file path does not exist or is invalid' exception...

this is how i used the upload method while going through the list of my files :

String? sftpPath = await strg.Client.sftpUpload(
                      path: element.absolute.path,
                      toPath: ".",
                      callback: (progress) async {
                        dev.log(
                            '(SFTP) file upload : ${element.path} progress : $progress');
                      });

this is my log :

[log] (SFTP)Client Connect : session_connected
[log] (SFTP) sftpConnected : sftp_connected
[log] (SFTP) upload list length : 3
[log] (SFTP) element path : /data/user/0/com.example.app_13/files/rmt/2023-06-01T16:01:54.055876.png
[log] (SFTP) element exists : true
[log] (SFTP) element permissions rw-------
[log] (SFTP) uploaderror :PlatformException(upload_failure, The file path does not exist or is invalid., null, null)

any help is appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant