When I used Codeigniter to upload files today (deployed on Centos), the following error was prompted:
A problem was encountered while attempting to move the uploaded file to the final destination.
Related code:
Modify it to the following code to solve the problem:
To create a new directory, just use:
mkdir /mml
To enhance security, you need to modify the owner and operation attributes of the directory:
chown -R user:dba /mml user is the user, dba For the created group
chmod -R 777 /mml
In your case, you don’t need to use it, but it is still very necessary for security. You can learn about its application on Baidu.
You only need to grant operation permissions to the new directory above
For example, chmod -R 777 /mml
Did you create wei under user? Then cd /user/wei and then you can enter. If you can't get in, it's probably a permissions issue. chmod +x wei to add execution permissions to the wei folder.
To create a file, just vi hello to create a file named hello
You can find out how to use the vi editor