No message when upload exceeds max upload size

amaria - September 9, 2008 - 19:31
Project:Media Field
Version:5.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I have max upload and max post set in php.ini to 8MB. If I upload an audio file 8MB or less, it's ok, but if I try to upload a larger file, it doesn't upload of course but there's no message stating what happened. It just comes back to the add (or edit) page and the user has no way of knowing what's going on. I have some help text on the page saying the file size should be 8MB or less but as we all know, people do not always read the fine print so how do I get some kind of message to show up when the file is too big?

#1

amaria - September 10, 2008 - 20:50
Status:active» closed

Ok, I think I've figured this out. I want to limit the upload max to 8M but if the post_max_size is also 8MB and the file is larger, the post will not complete and therefore no message. So by keeping the upload_max_filesize at 8M and raising the post_max_size to say 32M, that allows the post to complete and the message displays.

 
 

Drupal is a registered trademark of Dries Buytaert.