在离子应用程序中将文件从谷歌驱动器上传到服务器 [英] Upload files from google drive to server in Ionic application

查看:155
本文介绍了在离子应用程序中将文件从谷歌驱动器上传到服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Angular和Ionic的新手。我试图创建一个页面,用户可以从谷歌驱动器上传文件到服务器。他必须登录Google驱动器,然后从谷歌驱动器中选择文件并上传到服务器。我不知道如何开始,从哪里开始。如果你能引导我或给我一个例子,这将是有帮助的。



谢谢。

解决方案

如果您刚开始,我建议您先阅读有关 Drive API 和Ionic Development / AngularJS。这将帮助您了解Drive API的工作原理以及您使用的API(REST,iOS,Android)的可用功能。这些文档可以帮助你理解流程和一些代码示例,这些示例将解释函数如何工作。您还可以找到处理错误最佳做法性能提示,以帮助您改进应用程序。



这里有一些github回购,可以帮助你执行:



希望这有帮助。


I'm new to Angular and Ionic. I'm trying to create a page where a user can upload the file from google drive to the server. He has to do it by logging into Google drive then choose the file from google drive and upload into the server. I don't have any idea of how to start and where to start. If you can guide me or give me an example, it would be helpful.

Thank you.

解决方案

If you are just starting, I would recommend to start reading first about the documents regarding the Drive API and Ionic Development/ AngularJS. This would help you understand how Drive API works and what are the available functions on the API you use (REST, iOS, Android). These document can help you understand the flow and some code samples that will explain how the function will work. You can also find handling of errors, best practices and performance tips to help you improve your app.

Here are some github repo that can help you with the implementation:

Hope this helps.

这篇关于在离子应用程序中将文件从谷歌驱动器上传到服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆