We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
服务端对 fname 的定义是文件原始名(查看文档) 现有的 fname 参数可能有些冗余,我们的 upload 函数的第一个参数是 File,fname 可以通过 File.name 来获得
fname
upload
File
File.name
在直传接口中,服务端通过 FormData 对象可以直接获取 File 的 filename 进行处理,因此直传不消费 fname 在分片接口中,由于服务端收到的是一个一个的切片,所以必须在 completeFile 阶段通过参数指定 fname 设置
FormData
filename
completeFile
js-sdk/src/upload/base.ts
Lines 14 to 24 in b65d484
The text was updated successfully, but these errors were encountered:
No branches or pull requests
问题
服务端对
fname
的定义是文件原始名(查看文档)现有的
fname
参数可能有些冗余,我们的upload
函数的第一个参数是File
,fname
可以通过File.name
来获得fname
目前作用在直传接口中,服务端通过
FormData
对象可以直接获取File
的filename
进行处理,因此直传不消费fname
在分片接口中,由于服务端收到的是一个一个的切片,所以必须在
completeFile
阶段通过参数指定fname
设置相关代码
js-sdk/src/upload/base.ts
Lines 14 to 24 in b65d484
The text was updated successfully, but these errors were encountered: