Skip to content

Upload file with TLS #2779

Jun 10, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

What you refer to, is a demo on how to deal with several issues. The upload process is described in this tutorial https://mongoose.ws/documentation/tutorials/http/file-uploads/
The example as is does not have provisions to deal with TLS, so probably what you did, when you modified our code, is not correct or does not apply for that scenario
MG_MAX_RECV_SIZE

mongoose/mongoose.c

Lines 7493 to 7504 in 6cb1c3c

static bool ioalloc(struct mg_connection *c, struct mg_iobuf *io) {
bool res = false;
if (io->len >= MG_MAX_RECV_SIZE) {
mg_error(c, "MG_MAX_RECV_SIZE");
} else if (io->size <= io->len &&
!mg_iobuf_resize(io, io->size + MG_IO_SIZE)) {
mg_error(c,

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jbbcst
Comment options

Answer selected by scaprile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants