上载大型zip文件(8GB +)进行翻译 [英] Upload large zip file(8GB+) for translation

查看:56
本文介绍了上载大型zip文件(8GB +)进行翻译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有2条腿授权桌面应用程序,用于在Forge Viewer中上载3D模型,翻译模型和查看翻译后的模型.最近,我们正在尝试上传一个大型模型(以zip格式),大小超过8GB,但是与上传完成的访问令牌过期之前一样失败.

We have a 2 legged authorization desktop application for upload 3D models,translate models and view translated model in forge viewer. Recently we are trying to upload a large model (in zip,) which is more than 8GB in size, but failed as before upload completed access token expired.

我们的意图不是更改我们的应用程序,而是尝试增加3599秒的访问令牌到期时间.我们认为,如果到期时间增加3倍,则可以上传8GB模型.

Our intention is not to change our application rather try to increase access token expire time which is 3599 seconds. We think, if we get 3 times more expire time then we can upload our 8GB model.

有什么办法可以增加过期时间?有人以前有过这个问题吗?那怎么解决呢?有人可以请教吗?预先感谢.

Is there any way to increase expire time ? Anyone had this issue before ? How then solved ? Could anyone advice please? Thanks in advance.

推荐答案

很遗憾,无法自定义访问令牌的有效期限.最重要的是,尝试一次上传这种大小的文件对于您的应用程序用户来说可能是非常糟糕的体验(想象一下,当您已经上传了90%的文件时,互联网连接会下降).因此,我建议使用

It is not possible to customize the expiration period of an access token unfortunately. On top of that, trying to upload files of this size in one go could be a very bad experience for your app's users (imagine a drop in the internet connection when you've already uploaded 90% of the file). I would therefore recommend using the resumable upload functionality. That way you can refresh the token when needed, and more importantly, when the upload fails (or is canceled), your app can let the user resume the upload later.

对于可恢复上传的示例,以下是VSCode Forge扩展中可恢复文件上传的实现:

For an example of the resumable upload, here's the implementation of a resumable file upload in the VSCode Forge extension: https://github.com/petrbroz/vscode-forge-tools/blob/develop/src/commands/data-management.ts#L227-L269.

这篇关于上载大型zip文件(8GB +)进行翻译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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