tinode / ios

Tinodios: Tinode Messaging Client for iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Picture directly from camera does not upload

young310 opened this issue · comments

Describe the bug
Press the add button -> choose image -> take photo ->empty image caption -> use photo -> image will not upload

To Reproduce
Steps to reproduce the behavior:

  1. Go to chat with someone
  2. Press the add button
  3. choose image
  4. take photo
  5. empty image caption
  6. use photo
  7. image will not upload

Expected behavior

  1. Image should upload, but nothing happens
  2. if you choose "Camera roll" will work as expected

Tinodios (please complete the following information):

  • Version 1.7.1
  • Device iPhone 11 Pro max
  • iOS version 14.7.1

Server

  • Type :own setup
  • Server type : unmodified
  • Server version 0.17.9

Additional context
2021-08-25 01:48:22.484798+0800 Tinodios[1297:270885] Keyboard cannot present view controllers (attempted to present <UIAlertController: 0x106864800>)
2021-08-25 01:48:29.176672+0800 Tinodios[1297:270885] [Camera] Failed to read exposureBiasesByMode dictionary: Error Domain=NSCocoaErrorDomain Code=4864 "*** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: data is NULL" UserInfo={NSDebugDescription=*** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: data is NULL}
Elvvvis %b false
image size: 282620, max inband size: 195584

This should fix it:
0b40b78

@aforge I confirm the upload issue have been solved using 0b40b78. But the image preview become weird after uploading the pictur
IMG_4042
e.

@young310 Are you synched to devel@HEAD? I've pushed a few more commits recently.
19ab716 should take care of previews.

@aforge I currently use "master", and manually patch the file ImagePreviewController.swfit but with the same result.
I will try to rebuild the app using devel@HEAD
IMG_4044
IMG_4045
.

confirm problem solved in 0b40b78