我有一个 HTML 表单
哪里有pdf文件附件字段()
最后,我使用所有字段表单数据进行发布请求
何时并选择字段 android 文件选择器打开
PS:如果从谷歌驱动器中选择,我已经设法向用户显示一条消息请从存储中选择 但我不希望我实际上能够发布带有附件的文件
最佳答案
正如评论中所解释的,这是 Chrome ( https://bugs.chromium.org/p/chromium/issues/detail?id=1063576 ) 的一个错误。
还可能引发以下错误:NotReadableError: The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.
.
作为一种解决方法,请在进一步使用之前克隆您的文件或 Blob:
const buffer = await file.arrayBuffer();
const clone = new File([buffer], file.name, { type: file.type });
关于javascript - 从 android 文件中的谷歌驱动器(云存储)附加 : err_upload_file_changed error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62714319/