用户通过JavaScript上传文件到谷歌驱动器? [英] User uploaded file to google drive via javascript?
问题描述
我有一个网络应用程序,我希望用户能够从他们的计算机添加文件并将其上传到我的谷歌驱动器。我有选择文件按钮的工作,但我不知道函数应该如何看待访问我的谷歌驱动器帐户,并按一下按钮发送文件。
< h4>上载档案:< / h4>
< div class =form-group>
< input type =fileid =fileInputname =fileInput/>
< / div>< br>
我把它放在infowindow中,我可以搜索并选择用户的文件电脑。
我真的只是寻找JS功能发送到我的谷歌驱动器。
任何帮助,将不胜感激。
我们有同样的问题 - 因此开发了一个匿名上传进入网站所有者的Google云端硬盘。
请参阅 https:// driveuploader。 com /
您可以轻松创建可靠的上传组件,该组件可以嵌入任何带有iframe代码的网站,类似于YouTube - 也可以用作部分其他应用程序带有基本的 JavaScript API 和webhook。
在创建上传器之后 - 使用以下代码完成嵌入:
< iframe src =https: //driveuploader.com/upload/{uploader key} / embed />< / iframe>
它可以在所有最新的网页浏览器中运行 - 并支持无限制的文件大小上传(数百gigabytes,yes GIGABYTES)。
由于该组件具有响应能力,因此它也适用于Wordpress或Google协作平台网站。
如果您只需要一个基本页面,您的朋友,学生和同事可以安全地将一些(可能是大型)文件放入Google Drive,那么也可以免费提供这些文件。
免责声明:我们是此服务的开发者。
I have a web app that I would like the user to be able to add a file from their computer and upload it to my google drive. I have the choose file button working but I'm not sure as to how the function should look to access my google drive account and send the file upon a button click.
<h4>Upload a file:</h4>
<div class="form-group">
<input type="file" id="fileInput" name="fileInput"/>
</div><br>
I put this inside a infowindow and I'm able to search for and select a file from the user's computer. I really just looking for the JS function to send it to my google drive. Any help would be appreciated.
We had the same problem - and therefore developed a web service for anonymous uploading into the website owner's Google Drive.
See https://driveuploader.com/
You can easily create a reliable upload component, which can be embedded in any website with an iframe code, similarly like YouTube - or used as a part of other applications with a basic JavaScript API with webhooks.
After you create the uploader - embedding is done with the code like:
<iframe src="https://driveuploader.com/upload/{uploader key}/embed/"></iframe>
It runs in all latest web browsers - and supports unlimited file size uploads (tested on files with hundreds of gigabytes, yes GIGABYTES).
Because the component is responsive - it is perfect also for Wordpress or Google Sites websites.
If you need only a basic page where your friends, students, colleagues can securely drop into your Google Drive some (possibly large) files, then this is offered too - and completely for free.
Disclaimer: we are developers of this service.
这篇关于用户通过JavaScript上传文件到谷歌驱动器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!