Sending image, shows as a file instead of a image
- Please search in FAQ List first, and make sure your problem has not been solved before.
This page is broken .
- Please search in the issue first, and make sure your problem had not been reported before.
Can't find it
1. Versions
What is your wechaty version?
"@juzi/wechaty": "^1.0.65",
"@juzi/wechaty-puppet": "^1.0.61",
"@juzi/wechaty-puppet-service": "^1.0.69"Answer:
Which puppet are you using for wechaty? (puppeteer/padlocal/service...) @juzi/wechaty-puppet-service
Answer:
What is your wechaty-puppet-XXX(padchat/puppeteer/) version?
"@juzi/wechaty-puppet": "^1.0.61",
"@juzi/wechaty-puppet-service": "^1.0.69"Answer:
What is your node version? (run
node --version)
Answer:
What os are you using
Linux
Answer:
2. Describe the bug
Sending an image using Filebox shows a file to download instead of the picture directly.
3. To Reproduce
This part is very important: if you can not provide any reproduce steps, then the problem will be very hard to be recognized.
How to create a Minimal, Reproducible Example
Steps to reproduce the behavior:
- Wrap image with
const file = FileBox.fromUrl(message.dataUrl); contact.say(file)
4. Expected behavior
Give a clear and concise description of what you expected to happen.
The wecom account should send a picture.
5. Actual behavior
It sends a file instead of a picture that users have to download.
If applicable, add screenshots to help explain your problem. But the log message must be in plain text instead of screenshot.
6. Full Output Logs
N/A
N/ASource: wechaty/wechaty