Media upload for .vtt file

default discord avatar
eddieDev
4 weeks ago
7

Hello, I was wondering if we can upload

.vtt

files for video captions. I'm running into incorrect mimetype for

text/vtt

. Is this possible at the moment? I couldn't find this anywhere in discord, payload repo, nor the payload docs. Thanks!

  • default discord avatar
    Marťafiixek
    4 weeks ago

    It should be absolutely possible to upload it



    Sometimes the mimetype differs a bit



    Therefore I would try to put a console log somewhere to check the actual mimetype of the file



    For example I had problems when uploading ZIP file



    Thought

    application/zip

    is the mimetype I need



    But the correct mimetype was

    application/x-zip-compressed
  • default discord avatar
    eddieDev
    4 weeks ago

    Hey Marta. Thanks for your input. This is what it logged:

    mimeType: 'application/octet-stream'

    and I was able to successfully upload. Ty!

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.