Cloudkibo / iOS

iOS Code
0 stars 0 forks source link

(Group File Share) Logic for sharing Image from Gallery #538

Closed sumairasaeed closed 7 years ago

sumairasaeed commented 7 years ago

Here we will write logic to send image to all members of groups and also logic for receiving image attachment in group

sumairasaeed commented 7 years ago

Working on this. There is some issue in writing file. Trying to fix it: Error:

screen shot 2017-03-29 at 7 18 14 pm
jekram commented 7 years ago

How much this logic is different then the same logic for 1-1 ? Except for number of people?

sumairasaeed commented 7 years ago

Sir logic and flow is similar. Except that we have new endpoints for file sharing in group, seperate database table for group messaging to save data, seperate view controller(to link UI) so have to code accordingly. Fixed above error. The issue was value null in database. Now we are able to send image and it gets uploaded to server successfully. Next need to do image downloading part. Yes most part of logic is same as 1-1 file share.

sumairasaeed commented 7 years ago

Completed coding for this. In download endpoint, there is one field missing in endpoint on server. issue https://github.com/Cloudkibo/CloudKibo/issues/505 Will retest after it is corrected

jekram commented 7 years ago

Thanks. You can proceed to test now.

sumairasaeed commented 7 years ago

Tested this again. Server is now crashing on file upload. @sojharo FYI

sumairasaeed commented 7 years ago

This has been solved now. Server crash was due to old faulty data. Removed data and correctly sent type field as added in documentation. It is working fine now. Will mark it as resolved after some more testing.