aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Attributes/AcceptsImageFileAttribute.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2021-02-11 17:42:28 +0100
committerJoshua M. Boniface <joshua@boniface.me>2021-02-21 13:30:31 -0500
commitd53120602cadb57431bed8f7e74c1874179ac1f1 (patch)
tree13ddd27edcba48f3ca2830cb8bc799ccecba96e9 /Jellyfin.Api/Attributes/AcceptsImageFileAttribute.cs
parentda09257d58c33dce24aafb05dfdadad05e642059 (diff)
Merge pull request #5208 from crobibero/api-post-image
Add image file accept to openapi (cherry picked from commit 76d66e0dee62998a211c4f720e8f2800458d7f23) Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
Diffstat (limited to 'Jellyfin.Api/Attributes/AcceptsImageFileAttribute.cs')
-rw-r--r--Jellyfin.Api/Attributes/AcceptsImageFileAttribute.cs18
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)
+ {
+ }
+ }
+}