murar8 / axum_typed_multipart

Type safe multipart/form-data handling for axum.
77 stars 13 forks source link

Changing the prefix of `NamedTempFile` within `FieldData` #72

Closed shard77 closed 4 months ago

shard77 commented 5 months ago

Hello, quick question, would it be possible to implement the possibility to change the prefix of NamedTempFile within FieldData? With the tempfile crate you can change the prefix using: https://docs.rs/tempfile/3.10.1/tempfile/struct.NamedTempFile.html#method.with_prefix Afaik, currently with the usage of axum_typed_multipart, there's no way to specify the prefix, I'd have to change to FieldData<Bytes> and use the NamedTempFile builder or modify the existing tempfile created.

shard77 commented 4 months ago

Useless issue, my bad. Found the solution.