文件传输错误代码 1,Windows Phone 8.1
FileTransfer error code 1, Windows Phone 8.1
我已经使用 MobileFirst v7.0 构建了 WindowsPhone8.1 应用程序。我使用 FileTransfer phonegap 插件将文件传输到服务器。
调用FileTransfer插件上传方法时,出现如下错误
failure : {"code":1,"source":"http://xxx.xxx.xxx.xxx:10080/FileUploadServlet/","target":"C:\Data\Users\Public\Documents\Non-Production Errors.txt","http_status":null,"body":null,"exception":null}
为了获取文件位置,我使用本机代码打开文件选择器,然后获取文件的位置。
如有任何帮助,我们将不胜感激。
注意:我从 phone -> 文档文件夹中选择了文件。
在WindowsPhone中,FileTransfer
只能访问应用程序存储而不能访问phone和SD卡存储。
因此,FileTransfer
不知道使用本机 FilePicker
的文件选择的位置,它正在抛出 FileNotFoundError.
作为解决方法,我已通过 FilePicker
将文件选择器复制到应用程序存储,然后使用 FileTransfer
.
将其传输
我已经使用 MobileFirst v7.0 构建了 WindowsPhone8.1 应用程序。我使用 FileTransfer phonegap 插件将文件传输到服务器。
调用FileTransfer插件上传方法时,出现如下错误
failure : {"code":1,"source":"http://xxx.xxx.xxx.xxx:10080/FileUploadServlet/","target":"C:\Data\Users\Public\Documents\Non-Production Errors.txt","http_status":null,"body":null,"exception":null}
为了获取文件位置,我使用本机代码打开文件选择器,然后获取文件的位置。
如有任何帮助,我们将不胜感激。
注意:我从 phone -> 文档文件夹中选择了文件。
在WindowsPhone中,FileTransfer
只能访问应用程序存储而不能访问phone和SD卡存储。
因此,FileTransfer
不知道使用本机 FilePicker
的文件选择的位置,它正在抛出 FileNotFoundError.
作为解决方法,我已通过 FilePicker
将文件选择器复制到应用程序存储,然后使用 FileTransfer
.