You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We could create a new validator called media_type whose purpose would be to validate the media type (ie the first part of the content_type, application, image, video and other).
It could make things easier to write, rather than a content_type: /\Aimage\/.*\z/.
FYI
@mediatype,@subtype=content_type.split('/',2)
The text was updated successfully, but these errors were encountered:
We could create a new validator called
media_type
whose purpose would be to validate the media type (ie the first part of the content_type,application
,image
,video
and other).It could make things easier to write, rather than a
content_type: /\Aimage\/.*\z/
.FYI
The text was updated successfully, but these errors were encountered: