diff options
| author | Bond-009 <bond.009@outlook.com> | 2021-02-11 17:42:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-11 17:42:28 +0100 |
| commit | 76d66e0dee62998a211c4f720e8f2800458d7f23 (patch) | |
| tree | 8e3d3f85ba0c5812027c3796c3cbf4517ec69e9a /Jellyfin.Api/Attributes/AcceptsImageFileAttribute.cs | |
| parent | a2ac4d3dd77623ada99d76a2bdccbd076246253a (diff) | |
| parent | d5f0b046bb21dea0c120aa27f68fabc5947a8f1d (diff) | |
Merge pull request #5208 from crobibero/api-post-image
Add image file accept to openapi
Diffstat (limited to 'Jellyfin.Api/Attributes/AcceptsImageFileAttribute.cs')
| -rw-r--r-- | Jellyfin.Api/Attributes/AcceptsImageFileAttribute.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Jellyfin.Api/Attributes/AcceptsImageFileAttribute.cs b/Jellyfin.Api/Attributes/AcceptsImageFileAttribute.cs new file mode 100644 index 000000000..001f27409 --- /dev/null +++ b/Jellyfin.Api/Attributes/AcceptsImageFileAttribute.cs @@ -0,0 +1,18 @@ +namespace Jellyfin.Api.Attributes +{ + /// <summary> + /// Produces file attribute of "image/*". + /// </summary> + public class AcceptsImageFileAttribute : AcceptsFileAttribute + { + private const string ContentType = "image/*"; + + /// <summary> + /// Initializes a new instance of the <see cref="AcceptsImageFileAttribute"/> class. + /// </summary> + public AcceptsImageFileAttribute() + : base(ContentType) + { + } + } +} |
