murar8 / axum_typed_multipart

Type safe multipart/form-data handling for axum.
84 stars 14 forks source link

Upload example out-of-date with file persistence #63

Closed JuxhinDB closed 10 months ago

JuxhinDB commented 10 months ago

Excellent crate first of all. Adding this here in case I have some time later to fix the issue. The upload example is currently out-of-date. Specifically the fact that persist() is no longer available.

https://github.com/murar8/axum_typed_multipart/blob/5272e7c245d4b6a913626cc0d6f6a879332540e2/examples/upload.rs#L22-L32

I couldn't find a changelog for this and it seems like FieldData::contents is now just T. I'll likely move around this using axum's example and if it works well, update the example to reflect it.

JuxhinDB commented 10 months ago

False alarm - persist comes from NamedTempFile. Closing!