search

Home  >  Q&A  >  body text

node.js - nodejs使用formidable上传文件问题

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

巴扎黑巴扎黑2872 days ago652

reply all(3)I'll reply

  • ringa_lee

    ringa_lee2017-04-17 16:02:28

    Use fs module to operate in callback

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 16:02:28

    I am using it in the form on end callback, but it still says that the target file cannot be found

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 16:02:28

    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;

    reply
    0
  • Cancelreply