Actix-Web reports “App data is not configured” when processing a file upload
问题 I'm using the Actix framework to create a simple server and I've implemented a file upload using a simple HTML frontend. use actix_web::web::Data; use actix_web::{middleware, web, App, HttpResponse, HttpServer}; use std::cell::Cell; // file upload functions, the same as you can find it under the // actix web documentation: // https://github.com/actix/examples/blob/master/multipart/src/main.rs : mod upload; fn index() -> HttpResponse { let html = r#"<html> <head><title>Upload Test</title><