图片上传时缺少临时文件夹问题 [英] Missing a temporary folder problem while image upload
问题描述
显示缺少临时文件夹".问题
showing 'Missing a temporary folder.' problem
在 wp-config.php 文件中添加以下代码
added below code in wp-config.php file
define('WP_TEMP_DIR', dirname(FILE) .'/wp-content/temp/');还在 wp-content 中创建了临时文件夹
define('WP_TEMP_DIR', dirname(FILE) . '/wp-content/temp/'); also Created the Temp Folder inside wp-content
define('WP_TEMP_DIR', dirname(FILE) .'/wp-content/temp/');
define('WP_TEMP_DIR', dirname(FILE) . '/wp-content/temp/');
缺少临时文件夹
推荐答案
您需要将此代码粘贴到文件中仅此而已,停止编辑!祝写博客愉快.
You need to paste this code to the file just before the line that says ‘That’s all, stop editing! Happy blogging’.
define('WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp/');
保存更改并将 wp-config.php 文件上传回您的网站.
Save your changes and upload the wp-config.php file back to your website.
接下来,您需要转到/wp-content/文件夹并在其中创建一个新文件夹.您需要将此新文件夹命名为 temp.
Next, you need to go to /wp-content/ folder and create a new folder inside it. You need to name this new folder temp.
注意: 如果此方法不起作用,请检查您的 wp-content 文件夹的目录权限.
Note: If this method doesn’t work, then check the directory permissions for your wp-content folder.
这篇关于图片上传时缺少临时文件夹问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!