Keep an eye on file types

Even when you’re intending to upload a PDF, the media library will accept a png or jpg. In order to achieve the desired frontend behavior, be sure the extension of the file you’re uploading is .pdf – and doesn’t contain dual extensions like .png.pdf.

I’ll release a more in-depth look at best practices for all types of media uploads in a future video.