Why is my file not uploading?
Previous Topic  Next Topic 


Failure in file upload


File uploads are failing if the file is over a certain size, even if you have set the upload size over the file size. To fix this you must configure your php.ini file. The following is taken from the PHP manual.


Configuration Options

post_max_size (Type:integer)

Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize.

If memory limit is enabled by your configure script, memory_limit also affects file uploading. Generally speaking, memory_limit should be larger than post_max_size.

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

max_input_time (Type:integer)

This sets the maximum time in seconds a script is allowed to receive input data, like POST, GET and file uploads. The default setting is 60.

upload_tmp_dir (Type: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 (Type: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 the Notes* Section below.


The settings mentioned above can be viewed from within Files Together via the Tools->Options dialog**


Notes*

A few PHP directives may also take on shorthand byte values, as opposed to only integer byte values. What are all the available shorthand byte options? And can I use these outside of php.ini?  The available options are K (for Kilobytes), M (for Megabytes) and G (for Gigabytes; available since PHP 5.1.0), these are case insensitive. Anything else assumes bytes. 1M equals one Megabyte or 1048576 bytes. 1K equals one Kilobyte or 1024 bytes. You may not use these shorthand notations outside of php.ini, instead use an integer value of bytes. See the ini_get() documentation for an example on how to convert these values.

Notes**

The "Max file upload size" edit box only regulates uploads for this applicaiton. If it is larger than the system setting it will not have any effect.