Pluf Framework

Pluf Framework Commit Details


Date:2009-02-16 08:41:14 (15 years 10 months ago)
Author:Jürgen Hörmann
Branch:develop, master
Commit:743b11ec5076fba1e152913b1636974fa20a8248
Parents: 89095e707ef06250ad4a1bf5adcf85420e2bfebd
Message:Added the display of the authorized upload size.

Changes:

File differences

src/Pluf/Form/Field/File.php
4848
4949
5050
51
52
53
5154
52
55
56
5357
5458
5559
case UPLOAD_ERR_OK:
break;
case UPLOAD_ERR_INI_SIZE:
throw new Pluf_Form_Invalid(sprintf(__('The uploaded file is too large. Reduce the size of the file to %s and send it again.'),
Pluf_Utils::prettySize(ini_get('upload_max_filesize'))));
break;
case UPLOAD_ERR_FORM_SIZE:
throw new Pluf_Form_Invalid(__('The uploaded file is too large. Reduce the size of the file and send it again.'));
throw new Pluf_Form_Invalid(sprintf(__('The uploaded file is too large. Reduce the size of the file to %s and send it again.'),
Pluf_Utils::prettySize($_REQUEST['MAX_FILE_SIZE'])));
break;
case UPLOAD_ERR_PARTIAL:
throw new Pluf_Form_Invalid(__('The upload did not complete. Please try to send the file again.'));

Archive Download the corresponding diff file

Branches

Tags

Number of commits:
Page rendered in 0.05292s using 13 queries.