capacitor icon indicating copy to clipboard operation
capacitor copied to clipboard

[Bug]: Some images cannot be previewed.

Open zzcraft1 opened this issue 1 year ago • 2 comments

Capacitor Version

When I enabled CapacitorHttp and used xhr to upload files, after packaging for Android, some images could be previewed directly using the link, but some images couldn't be previewed through the link. However, after downloading, the images could be displayed normally.

Other API Details


Platforms Affected

  • [ ] iOS
  • [x] Android
  • [ ] Web

Current Behavior

当我启用 CapacitorHttp,使用xhr上传文件,打包安卓之后,有些图片上传可以直接使用链接预览,但是有些图片通过链接无法预览,但是下载之后是可以正常显示图片的。

Expected Behavior

所以的图片上传成功之后都可以正常通过链接查看

Project Reproduction

‘’

Additional Information

No response

zzcraft1 avatar Jul 16 '25 06:07 zzcraft1

This issue needs more information before it can be addressed. In particular, the reporter needs to provide a minimal sample app that demonstrates the issue. If no sample app is provided within 15 days, the issue will be closed. Please see the Contributing Guide for how to create a Sample App. Thanks! Ionitron 💙

ionitron-bot[bot] avatar Jul 16 '25 13:07 ionitron-bot[bot]

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

ionitron-bot[bot] avatar Aug 16 '25 03:08 ionitron-bot[bot]