Skip to main content

[BUG] Incorrect MIME Type Handling In /v1/api/usenet/createusenetdownload

When passing files rather than links that have parameters on the MIME type causes “Invalid file type. Please provide a valid nzb file.” type errors. An example of a valid MIME type that produces this error is “application/x-nzb;charset=utf-8”. Ideally it would respect or validate those parameters if present, but at the very least the type shouldn’t be considered invalid for having parameters.

At present I’m working around this by removing all the parameters myself. The current behavior causes
```
formData.set(“file”, await fetch(“url to get nzb from hydra”).then(r => r.blob()));
```
to fail because NZBHydra2 adds a charset parameter.

Status: Already Done2 comments

Comments2

  • Wamy

    Team•

    Sep 10, 2025

    Thanks, we will add this. I have also created a bug focused board.

  • decoupled456

    •

    Aug 31, 2025

    I could not find a bug report board. Maybe there is one, but since I couldn’t find it I put on the only board I could find. A clearer way to report a bug would be nice.