Introduction
PHP uses a system variable to determine the upload path. By default, this is configured as /tmp
. The standard workflow uploads a file to /tmp
, and then moves it into the site's upload path. This article provides the procedure to change the default upload path path.
Workaround
- Log in to the user's cPanel account.
- Open the "MultiPHP INI Editor" app in the "Software" section.
- Click the "Editor Mode" tab.
- From the "Select the home directory or a domain’s document root to open the corresponding PHP configuration" dropdown menu, select the domain to change the upload path.
- Add the following line in the textbox.
sys_temp_dir = "/path/to/new/upload/folder"
Please note that "/path/to/new/upload/folder" must be replaced with the absolute path to the new upload location. - Click the "Save" button.
Comments
0 comments
Article is closed for comments.