Skip to content
New issue

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

上传遥控器图片到FDS后无法打开 #1523

Open
MisterrWu opened this issue Sep 3, 2019 · 12 comments
Open

上传遥控器图片到FDS后无法打开 #1523

MisterrWu opened this issue Sep 3, 2019 · 12 comments
Assignees
Labels
Bug Native端app存在bug 需要修复 文件管理 本地读写/文件上传下载/FDS/解压缩/截屏

Comments

@MisterrWu
Copy link

是否为新品(必填)
在售

关联的产品model
lumi.acpartner.mcn02

项目ID(必填)

用户ID(必填)
840907289

企业名称(必填)
深圳绿米联创科技有限公司

环境(必填)

  • 电脑操作系统:[Mac OS]
  • 手机系统:[Android 8.1/iOS 11.0]
  • SDK分支: [master]
  • 相关模块:[Host]

现象(必填)
上传遥控器图片到FDS后无法打开。Host.file.uploadFileToFDS

期望(必填)
上传的图片能够正常打开。

其他的上下文/日志/截图

image

不要贴大段代码❗️

@MIoTBot
Copy link

MIoTBot commented Sep 3, 2019

@MisterrWu 感谢您提出宝贵的 issue,我会通知开发尽快处理!

@zanetti4
Copy link
Contributor

zanetti4 commented Sep 4, 2019

该问题在安卓和 ios 都出现了吗?

@zanetti4
Copy link
Contributor

zanetti4 commented Sep 4, 2019

请先对照 com.xiaomi.demo -> Main -> Host -> File -> index.js 中的例子检查一下,是否是使用的问题。

@zanetti4 zanetti4 added the JS使用问题 用于统计,主要包括第三方对js使用有误等问题 label Sep 4, 2019
@MisterrWu
Copy link
Author

image

我是照着例子弄到,上面是 com.xiaomi.demo -> Main -> Host -> File -> index.js 中的例子

@zanetti4
Copy link
Contributor

zanetti4 commented Sep 6, 2019

该问题在安卓和 ios 都出现了吗?您的设备申请配置FDS权限了吗?无法打开图片时报了什么错误信息?

@MisterrWu
Copy link
Author

iOS和android 都试过了,无法打开是上传到后台后,让后台的人查看图片,无法查看,以前原生上传的图片可以正常打开查看。

@MisterrWu
Copy link
Author

图片

@zanetti4 zanetti4 added Bug Native端app存在bug 需要修复 后台问题 米家后台相关问题 and removed JS使用问题 用于统计,主要包括第三方对js使用有误等问题 问题咨询 labels Sep 11, 2019
@aiquestion
Copy link

是已经从米家服务器获取到presigned url,然后成功上传(往cnbj2.fds.api.xiaomi.com 域名),但是下载的有问题吗?
如果是这样,麻烦按下面文档看下上传fds的操作是否有问题。
http://docs.api.xiaomi.com/fds/introduction.html

@MisterrWu
Copy link
Author

是,下载后到图片数据头部有上面截图中的数据,导致图片无法正常查看。

@aiquestion
Copy link

这个米家服务器这边没法调查了。fds是小米的公共服务,一般来说不会有什么问题,你们可以抓包看下上传上去的数据,是不是哪里的代码加上了这个。

@MisterrWu
Copy link
Author

能看下是不是这个接口把上面截图中的数据写入到了照片数据里面 Host.file.uploadFileToFDS @zanetti4

@zanetti4 zanetti4 added 文件管理 本地读写/文件上传下载/FDS/解压缩/截屏 and removed 后台问题 米家后台相关问题 labels Sep 19, 2019
@fishle
Copy link
Collaborator

fishle commented Sep 24, 2019

Android的这个问题将在SDK 10028修复,插件需要更新sdk到10028

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Native端app存在bug 需要修复 文件管理 本地读写/文件上传下载/FDS/解压缩/截屏
Projects
None yet
Development

No branches or pull requests

7 participants