php ini upload_tmp_dir

Because an uploaded file must be successfully transferred to the server before subsequent processing on that file can begin, a staging area of sorts must be designated for such files as the location where they can be temporarily placed until they are moved to their final location.

This location is specified using the upload_tmp_dir directive.For example, suppose you want to temporarily store uploaded files in the /tmp/phpuploads/ directory. You would use the following:

upload_tmp_dir = "/tmp/phpuploads/"

Keep in mind that this directory must be writable by the user owning the server process. Therefore, if user nobody owns the Apache process, user nobody should be made either owner of the temporary upload directory or a member of the group owning that directory.

If this is not done, user nobody will be unable to write the file to the directory, unless world write permissions are assigned to the directory.





Content