mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Fixing file transfert error 400
This commit is contained in:
parent
36111c9b29
commit
7c26561a9f
1 changed files with 6 additions and 0 deletions
|
|
@ -349,6 +349,12 @@ static void linphone_chat_message_process_response_from_post_file(void *data,
|
|||
file_upload_end_background_task(msg);
|
||||
linphone_chat_message_unref(msg);
|
||||
}
|
||||
} else if (code == 400) {
|
||||
ms_warning("Received HTTP code response %d for file transfer, probably meaning file is too large", code);
|
||||
linphone_chat_message_update_state(msg, LinphoneChatMessageStateFileTransferError);
|
||||
_release_http_request(msg);
|
||||
file_upload_end_background_task(msg);
|
||||
linphone_chat_message_unref(msg);
|
||||
} else {
|
||||
ms_warning("Unhandled HTTP code response %d for file transfer", code);
|
||||
linphone_chat_message_update_state(msg, LinphoneChatMessageStateNotDelivered);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue