Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

没有SourceFile 原始文件路径,只有文件buffer,如何文件上传? #18

Open
moliuying opened this issue Sep 18, 2022 · 2 comments

Comments

@moliuying
Copy link

https://support.huaweicloud.com/sdk-nodejs-devg-obs/obs_29_0404.html
使用的是node的 nest框架,它的@FileInterceptor方法解析出来的前端上传的文件对象,没有文件的path,只有文件的buffer流,怎么使用ObsClient 进行文件上传呢? 困扰我很久了

@lishaoxin123
Copy link

兄弟你解决了?今天刚用这玩意,看了下文档无力吐槽要是可以选根本不想用,另外想了下他这个只能path的话估计要在node把文件写入,然后再读取这个文件流的路径了

@praveenGrepruby
Copy link

我仍然面临着同样的问题。我们可以上传Buffer中的图片,但不能传递图片的路径。你是如何解决这个问题的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants