mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 13:48:09 +00:00
Handle 400 returned by lft script if file is too large
This commit is contained in:
parent
f9986484c0
commit
4dd100a061
1 changed files with 5 additions and 0 deletions
|
|
@ -383,6 +383,11 @@ void FileTransferChatMessageModifier::processResponseFromPostFile (const belle_h
|
|||
releaseHttpRequest();
|
||||
fileUploadEndBackgroundTask();
|
||||
}
|
||||
} else if (code == 400) {
|
||||
lWarning() << "Received HTTP code response " << code << " for file transfer, probably meaning file is too large";
|
||||
chatMessage->updateState(ChatMessage::State::FileTransferError);
|
||||
releaseHttpRequest();
|
||||
fileUploadEndBackgroundTask();
|
||||
} else {
|
||||
lWarning() << "Unhandled HTTP code response " << code << " for file transfer";
|
||||
chatMessage->updateState(ChatMessage::State::NotDelivered);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue