#2664·koel

[FR]: Increase upload_max_filesize and post_max_size Values To 800MB

Author: linuxluserCreated Sep 10, 2026Updated Sep 10, 2026

Description

Problem

I have a few hi-res FLAC files that can get to be 150MB or larger per song. I tried uploading them but I ran into a 50MB limit when uploading songs. Fortunately, I found an old bug in this repo that explained that it was imposed by a POST/upload limit in PHP that can be set via an .htaccess file. So I copied the .htaccess.example file that it's the repo and changed the values at the bottom from 50M to 800M (I did not set this randomly, it's to match the value set by the php.ini file in the Koel docker container).

Solution

Bump up the value of the default .htaccess and/or php.ini file from 50M to 800M. Capping at 50M feels like it's rejecting hi-res files and could be difficult for a non-admin to figure out why they keep getting "Server error" when uploading.

And, maybe just my opinion, but there doesn't seem to be any justification to have such a low limit in the first place when we know that audio files these days (FLAC, ALAC, WAV, DFF, DSF, etc) can get quite large, especially if it's a long recording.

Additional information

No response