What file formats are allowed?

On rare occasions I want to upload a file that isn’t a PDF, image or video. Today I wanted to upload a markdown file and link to it for folks to download. It seemed to acquire an URL that ended with .jpg. I ended up putting the content in the body of my post, which would be my normal preference (for usability etc) but for various reasons I didn’t want to do that with this file.

So, what formats are allowed? Could that be extended or is there a concern about malicious actors?

I don’t know which formats are allowed, unfortunately, but I can share a workaround. If you have a custom theme set up, you can create a new template*, name it accordingly, and make sure to put it in the static directory. Something like this:

If your blog resides at https://example.com, a template (file) created as above will be available at https://example.com/my-markdown-file.md.

@manton, maybe Uploads deserve its own page in the help documents?


* The button says New Template but it could just as well have said New File. It’s not restricted to just templates.

Good idea. Here’s the list of file extensions for uploads right now. I’ll add .md too for later. Some of these won’t preview correctly in the Uploads page yet, but they will work when on your blog.

mp3
m4a
m4v
mov
mp4
png
gif
webp
svg
pdf
ttf
woff
woff2
eot
xml
txt
js
json
css
html
3 Likes

Thanks. That’s a handy workaround to know.

Fantastic! Thanks. I could equally have used .txt for my file but gave up trying… A definitive list is very useful.