Of course. A "Dede uploads error" is a very common issue for users of the DedeCMS (织梦CMS) content management system. The error is generic, so the cause can vary from simple file permission issues to more complex server configuration problems.

Let's break down the troubleshooting process from the most common and easiest fixes to the more complex ones.
Step 1: Understand the Specific Error Message
The first and most important step is to look at the exact error message you are seeing. It usually appears right after you try to upload an image or file in the backend (admin panel) or on a frontend form.
Common error messages include:
Upload: 111You don't have permission to upload this file type.Directory doesn't exist or has no access permission!Move uploaded file failed.An error occurred in the upload. Please check your server settings.HTTP 500 (Internal Server Error)HTTP 403 (Forbidden)
Action: Take a screenshot or copy the exact error message. This will help pinpoint the exact problem.

Step 2: The Most Common Causes and Solutions
Here are the most frequent reasons for upload errors, ordered from most likely to least likely.
File and Folder Permissions (The #1 Culprit)
DedeCMS needs to write files to specific directories on your server. If the permissions are too restrictive, it will fail.
What to Check:
- The Upload Directory:
/uploads/ - Subdirectories:
/uploads/allimg/,/uploads/soft/,/uploads/attachments/, etc. - The Data Directory:
/data/(stores some cache and configuration files).
How to Fix (via FTP or File Manager in cPanel/Plesk):

- Navigate to your DedeCMS root directory.
- Right-click on the
uploadsfolder and select File Permissions. - Set the numeric value to
755. This means:- Owner (you): Read, Write, Execute (7)
- Group: Read, Execute (5)
- Public: Read, Execute (5)
- Click "Apply to Files and Folders in Directory" or a similar option to apply this recursively to all files and folders inside
uploads. - Important: Also check the permissions of the
/data/directory. Set it to755as well. Inside/data/, theconfig.cache.inc.phpfile should be set to666to allow writing, but you can set it back to644after the configuration is saved.
Incorrect config_updatepath.php Configuration
This file tells DedeCMS where the uploads directory is located. If this path is wrong, you'll get errors.
How to Fix:
- Navigate to the
/include/directory in your DedeCMS installation. - Open the file
config_updatepath.phpfor editing. - You will see a line like this:
$cfg_updatepath = '/home/yourusername/public_html/uploads';
- Change the path to the full server path to your
uploadsfolder. Do not use a URL (http://...).- How to find your full server path? Create a new PHP file in your root directory with this content:
<?php echo $_SERVER['DOCUMENT_ROOT']; ?>
- Upload this file (e.g.,
path.php) to your server and visithttp://yourdomain.com/path.phpin your browser. It will print the full path. Copy this path and add/uploadsto the end.
- How to find your full server path? Create a new PHP file in your root directory with this content:
- Save the
config_updatepath.phpfile and try uploading again.
PHP upload_max_filesize and post_max_size Limits
If you try to upload a file that is larger than what your PHP configuration allows, the upload will fail silently or with a generic error.
How to Fix:
- Create a file named
phpinfo.phpin your root directory. - Add this code:
<?php phpinfo(); ?>
- Visit
http://yourdomain.com/phpinfo.phpin your browser. - Press
Ctrl+F(orCmd+Fon Mac) and search forupload_max_filesizeandpost_max_size. Note their current values (e.g.,8M). - If you need to increase the limit:
- Best Method: Create a
.user.inifile in your website's root directory (if your server supports it, like on LiteSpeed or some Apache setups). Add these lines:upload_max_filesize = 20M post_max_size = 20M
Replace
20Mwith your desired size. You may need to restart your website for this to take effect. - Alternative Method: Edit your main
php.inifile. This file's location varies by server. You may need to ask your hosting provider for help or use their control panel (cPanel, Plesk) to edit it. Add or change the lines:upload_max_filesize = 20M post_max_size = 20M
- Important:
post_max_sizemust be equal to or larger thanupload_max_filesize.
- Best Method: Create a
Safe Mode or Open_basedir Restrictions (Older Servers)
Some older or misconfigured PHP servers have safe_mode enabled or open_basedir restrictions that prevent scripts from writing to certain directories, even with correct permissions.
How to Fix:
- This is a server-level setting and cannot be changed from within DedeCMS.
- You will need to contact your web hosting provider's support and ask them to:
- Disable
safe_modefor your account. - Ensure that the
open_basedirsetting includes your DedeCMS root directory and theuploadsfolder.
- Disable
File Type Restrictions
DedeCMS has a list of allowed file extensions in its configuration. If you try to upload a file with an extension not on the list, it will be rejected.
How to Fix:
- Navigate to
/dede/(the admin panel directory). - Open
config.phpfor editing. - Look for the
$cfg_mediatypesvariable. It will look something like this:$cfg_mediatypes = array( 'image' => 'jpg|jpeg|gif|png', 'media' => 'rm|rmvb|wmv|avi|mpg|mpeg|mp4|3gp|mov', 'file' => 'doc|docx|xls|xlsx|ppt|pptx|pdf|txt|rar|zip|gz|bz2' ); - You can add or remove extensions from the lists. For example, to allow
.webpimages, change the 'image' line to:'image' => 'jpg|jpeg|gif|png|webp', - Save the file.
Summary Troubleshooting Checklist
If you're stuck, go through this list:
- Permissions: Set
/uploads/and its subfolders to755. Set/data/to755. - Config Path: Check
include/config_updatepath.phpand ensure it has the full server path to your uploads folder. - PHP Limits: Check
upload_max_filesizeandpost_max_sizeinphp.inior via a.user.inifile. Make surepost_max_sizeis not smaller. - File Types: Check
/dede/config.phpto see if your file extension is allowed. - Server Issues: If all else fails, the problem might be on the server side. Contact your hosting provider and mention you are having PHP file upload issues.
By methodically checking these areas, you should be able to identify and resolve the vast majority of Dede upload errors.
