feat: add XMP writer plugin and enhance media upload configuration

This commit is contained in:
2025-11-02 19:22:35 +01:00
parent 13bb9e6b3e
commit 8b98df745c
11 changed files with 217 additions and 31 deletions

View File

@@ -38,11 +38,13 @@ impl From<Media> for MediaResponse {
}
pub fn media_routes() -> Router<AppState> {
let max_size_mb = 100; // todo: get from config
Router::new()
.route("/", post(upload_media))
.route("/{id}", get(get_media_details).delete(delete_media))
.route("/{id}/file", get(get_media_file))
.layer(DefaultBodyLimit::max(250 * 1024 * 1024))
.layer(DefaultBodyLimit::max(max_size_mb * 1024 * 1024))
}
async fn upload_media(