Rebecca Sutton Koeser bio photo

Rebecca Sutton Koeser

Lead Developer at Princeton University Center for Digital Humanities, PhD in English Literature.

Twitter LinkedIn Github ORCID iD Keybase Humanities Commons

Maximum file upload size is configured in the php.ini.  Confuguration values like this can be retrieved with the ini_get function, e.g.,


Sizes can be set in the php.ini file with php shorthand (K for Kilobytes, M for Megabytes, and G for Gigabytes); the documentation for ini_get() includes a function for converting these values to bytes, e.g. for use in a hidden MAX_FILE_SIZE form parameter (apparently not honored by all browsers and easy to bypass, but still recommended because it may at least keep some users from having to wait while attempting to upload a file that is too large and will be rejected anyway.