Music on hold upload error: File size is too large. Max size is 8388608 bytes

I am trying to upload a 16MB Music on hold file and get this error.
I tried adjusting the setting in php.ini for apache2 and this has no affect.
Tried restarting apache2 and rebooting after making this adjustment.
And searching for this topic both in the forums and google.
Lots of VERY old posts and no definitive answers I could find regarding this.

I don’t know the answer to your question, but assuming ulaw, that’s more than half an hour. Does the file really need to be so big?

Yes- it needs to be that big.
How might we fix this?

What’s the playing time? Perhaps it’s in a weird format (sample rate uselessly high).

Please allow me to steer this conversation back to the question concerning the upload limit and where this may be set/adjusted.
I have my reasons for this.
Thanks.

Upload the file using sftp or another means that does not involve a browser.

What setting did you adjust and what was the location of the php.ini you adjusted?

Setting: upload_max_filesize

Location: /etc/php/8.2/apache2/php.ini

Anyone have any ideas here?
Why is this setting not having any affect?

Show the actual setting as you have it in the php.ini file.

Sure:

; Maximum allowed size for uploaded files.
; PHP: Description of core php.ini directives - Manual
upload_max_filesize = 64M

Also tried 16M and 32M

Seems to have no affect.
Error stated max size appears to reference a limit of “8.388608” (8.388 MB).

8388608 bytes is exactly 8MB, using the definition of M used for computer memory.

A quick look at https://stackoverflow.com/questions/1122418/changing-upload-max-filesize-on-php suggests that php.ini settings can be overridden in other files.

Did you check the post_max_size which controls the size of the post data you are submitting. You are uploading a file but you are doing it via $_POST

1 Like

This was it!
Thanks!
I read a number of other forum posts and did searches which did not lead me to this before posting here.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.