Skip to main content

How to get file type before uploading via the Upload Widget

Comments

1 comment

  • Loic Verger Del Bove

    Hi Jason,

    Thanks for reaching out.

    There is actually no way on our side to know the resource_type before you upload the file. Usually what you can also do is either check the extension of the file or its mime-type and then assign the right resource_type.

    Hope that helps.

    Best,

    Loic

    1

Post is closed for comments.