PHP Manual
Prev | Appendix H. List of core `php.ini` directives | Next

# File Uploads

Table H-6. File Uploads Configuration Options

Name | Default | Changeable
--- | --- | ---
file_uploads | "1" | PHP_INI_SYSTEM
upload_tmp_dir | NULL | PHP_INI_SYSTEM
upload_max_filesize | "2M" | PHP_INI_SYSTEM|PHP_INI_PERDIR

Here's a short explanation of the configuration directives.

file_uploads boolean

  Whether or not to allow HTTP file uploads. See also the upload_max_filesize, upload_tmp_dir, and post_max_size directives.

  When an integer is used, the value is measured in bytes. You may also use shorthand notation as described in this FAQ.

upload_tmp_dir string

  The temporary directory used for storing files when doing file upload. Must be writable by whatever user PHP is running as. If not specified PHP will use the system's default.

upload_max_filesize integer

  The maximum size of an uploaded file.

  When an integer is used, the value is measured in bytes. You may also use shorthand notation as described in this FAQ.

Prev | Home | Next
Paths and Directories | Up | General SQL