Hi.
I'm reading the docs and it seems that I'm getting something wrong.
I don't want my upload to touch the disk directly.
I want to hold in memory, to do some work on the file.
And if I decide to save the file I will use a buffer to limit the amount of memory used.
struct UploadForm {
file: Vec<actix_multipart::form::bytes::Bytes>,
}
async fn upload( MultipartForm(form): MultipartForm<UploadForm> ) -> impl Responder {
// no body just for test
HttpResponse::Ok()
}
It responds with 400 status with "payload reached size limit" message.