So I have an application where users can upload videos and .vtt caption files.
The issue I'm having is that I get the following error messages when attempting to upload a .vtt file:
Caption has an extension that does not match its contents Caption is invalid Caption content type is invalid
Here is my validation for the field, I've included 'text/vtt' format, what is the issue?
validates_attachment_content_type :caption, :content_type => ['application/txt', 'text/plain', 'text/vtt']