【发布时间】:2020-01-18 05:34:27
【问题描述】:
我是反应原生的新手,并使用 react-native-drive-api-wrapper 在反应原生中与谷歌驱动器一起工作。所以我可以创建文件夹,也可以使用它创建一个包含一些内容的新文件。
const contents = "My text file contents";
GDrive.files.createFileMultipart(
contents,
"text/plain", {
parents: ["root"],
name: "text2.txt"
},
false);
但不知道如何将设备中的文件上传到谷歌驱动器。最后,我的目标是将图像和视频上传到驱动器。请帮助我前进。
【问题讨论】:
标签: android react-native google-drive-api multipartform-data image-uploading