Node.js uploads pictures locally, but the server reports an error.



tmp


mac centOS

Mar.02,2021

path does not exist, just create it. If you can add path judgment in front of the code, there is no mkdir.


create a tmp directory under the corresponding static folder on the server.


problem solved.
the path setting on the local machine is form.uploadDir ='. / tmp';
but cannot be recognized on the centOS server. If the point is removed, the path can be found form.uploadDir ='/ tmp'; in the server root path,

.

but how to set it to the root path of the project form.uploadDir ='/ www/wwwroot/tmp'; I feel silly to set it this way. I hope God will give me some advice

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4d67e-43c57.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4d67e-43c57.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?