node.js - nodejs使用formidable上传文件问题
巴扎黑
巴扎黑 2017-04-17 16:00:28
0
3
643

上传文件明明成功 可是在form on end中无法重命名文件

巴扎黑
巴扎黑

reply all(3)
左手右手慢动作

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;

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template