上传文件明明成功 可是在form on end中无法重命名文件
Use fs module to operate in callback
I am using it in the form on end callback, but it still says that the target file cannot be found
Form on end only receives the request and file content, but does not parse the file. You have to go to the callback of parse to get the parsed file and then write it to the target directory;
Use fs module to operate in callback
I am using it in the form on end callback, but it still says that the target file cannot be found
Form on end only receives the request and file content, but does not parse the file. You have to go to the callback of parse to get the parsed file and then write it to the target directory;