One of my clients wants to self-host some video recordings. Naturally I’ve implemented a custom block and use the HTML5 video tag to display it.
The issue I’ve seen happening multiple times now, is that while creating the video file copy in the
/media/ directory, the copy process is somehow interrupted/canceled and thus one ends up with a corrupt and incomplete video file. Which of course, since that is being linked on the site, fails to work properly.
I had this happen with 700MB video and with a 1.2GB video and the final file size in the media directory was around 560MB.
Is Kirby doing an actual file copy or is it loading it into memory (which may or may not be capped at 500MB)?
Is there a simple way to disable media file creations for e.g. video files and instead serve the file directly? Given that moving the page and otherwise changing stuff, can lead to duplications within the
media directory, so you can quickly assemble multiple GB of data for the same video.
Steps to Reproduce
- Get an account on some cheap shared hoster
- Create a new page in the Kirby panel
- Upload a large (> 500MB) video file (either through FTP or the panel)
The file is incomplete and the video is corrupted
The copy in the
media/ directory is completed and the file is not corrupt