Actix-Web reports “App data is not configured” when processing a file upload

前端 未结 2 1446
旧时难觅i
旧时难觅i 2021-01-19 10:45

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 acti         


        
2条回答
  •  不知归路
    2021-01-19 11:34

    You have to register your data before you can use it:

    App::new().data(AppState::new())
    

提交回复
热议问题