handling upload limits from php.ini graciously ?

Created on 28 January 2025, 2 months ago

Problem/Motivation

If you try to upload a file above Drupal limitation but within php.ini POST Content-Length, you l will get an informative error handled by Drupal, like 'the file you are trying to upload exceeds the limit [...]'

If you go above POST Content-Length the ajax call return a warning and you get the rather vague message :'Oops, something went wrong. Check your browser's developer console for more details.'

Of course, you can increase php.ini limits, but you might have other project constraints that prevent that.

Proposed resolution

Would it be possible for Drupal, to catch the error and display an error message in the same informative way ?

💬 Support request
Status

Active

Version

10.5

Component

ajax system

Created by

🇫🇷France Thony

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024