使用reactjs和nextjs上传文件到驱动器
我正在使用这个 https://github.com/rpldy/drive-uploady 来更新文件但这个库仅显示了一个必须从本地上传文件的示例。如果我有一个文件(base64 url)或一个blob(我从之前从谷歌驱动器获得的pdf文件中获得的)我该如何使用它。我尝试了多种资源,但没有任何东西能给我结果。
这里: https://github.com/rpldy/react- uploady/tree/master/packages/ui/uploady
I am using this https://github.com/rpldy/drive-uploady to update files but this library only shows an example where you have to upload files from local. If i have a file (base64 url) or a blob (which i get from a pdf file i got from google drive before) how can i use this. I have tried multiple resource but no thing can give me result.
Here: https://github.com/rpldy/react-uploady/tree/master/packages/ui/uploady
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
驱动器上的驱动器主要是用于上传的发件人。因此,您可以使用上传的大部分功能。在这种情况下, upload 上传上下文方法 -
单击按钮后,这将启动上传过程。当然,您在哪里得到斑点是您的责任。
Drive-Uploady is mainly a sender for Uploady. Therefore, you are able to use most of Uploady's functionality. In this case, the upload context method -
This will initiate the upload process once the button is clicked. Where you get the blob is your responsibility of course.