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
chooseImage({ count: 1, sourceType: ['album', 'camera'] }).then(res => { const tempFilePaths = res.tempFilePaths });
在web端 path 是 blob URL blob://xxxx
blob://xxxx
const task = upload({ url: 'http://httpbin.org/post', fileType: 'image', fileName: 'file', filePath: '**filePath**', success: res => { console.log('upload success'); }, fail: res => { console.log('upload fail'); }, });
然后upload这里并不能传blob URL
导致得手动转成file
const imgBlob = await fetch(tempFilePath).then((r) => r.blob()); const file = new File([imgBlob], fileName);
感觉很麻烦
然后
需求
The text was updated successfully, but these errors were encountered:
确认问题,内部评估中
Sorry, something went wrong.
No branches or pull requests
在web端 path 是 blob URL
blob://xxxx
然后upload这里并不能传blob URL
导致得手动转成file
感觉很麻烦
然后
需求
The text was updated successfully, but these errors were encountered: