aaronpk / Quill

🖋 A Micropub client for creating posts
https://quill.p3k.io/
117 stars 25 forks source link

Allow video format on media endpoint #119

Open jee-r opened 4 years ago

jee-r commented 4 years ago

Hi, i don’t know if it’s already possible, may be it’s my media endpoint (php) who has a problem. When i try to file_put_contents('/tmp/media_debug.log', print_r($_FILES, true), FILE_APPEND); and upload a mp4 (3Mo) there is no output in my media_debug.log but with the images there is one as expected.

I took a look on the Quill’s code and it looks like he handle only images files i didn’t find anything for .mp4, .webm, .mov or .ogg files.

Thank you

Ps: send with Quill obviously :D

Quill #micropub #media #endpoint #webm #mp4 #ogg #mov #video #upload

(Originally published at: https://jeer.fr/micro/1578102244)

aaronpk commented 4 years ago

Quill doesn't currently handle video files at all. That said, there could also be an issue with your server rejecting the POST request because it is too big. Check your PHP settings to see how big the max file upload size is. Even still, I doubt it would work still because Quill's image handling is really meant just for photos right now.