awmp
A convenience library for working with multipart/form-data in actix-web 1.x, 2.x, 3.x, or 4.x.
This library uses actix-multipart internally, and is not a replacement
for actix-multipart. It saves multipart file data to tempfiles and collects text data, handling all blocking I/O operations.
Provides some configuration options in PartsConfig:
- text_limit: Any text field data larger than this number of bytes will be saved as a tempfile
- file_limit: Any file field data larger than this number of bytes will be discarded/ignored
- file_fields: Treat fields with these names as file fields
- text_fields: Treat fields with these names as text fields
- temp_dir: Use this folder as the tmp directory, rather than
tempfile's default
Usage
This crate supports both major versions of actix-web, 1.x, 2.x, 3.x, and 4.x. It supports 4.x by default.
To use with actix-web 1.x, add the following to your Cargo.toml:
= { = "0.8", = false, = ["v1"] }
Example
use ;
async
async
Current version: 0.8.0
License: MIT