Skip to content
Loading
  • Manikandan Murugesan
    0

    You should to find where error occurs: before writeFile call or before middleware call. Also it's good to enhance your question with detailes: what actually happens and where process fails, does it create file or not, etc.

    There could be several issues:

    • Body is too big (100K for body-parser if I'm right).
    • Body is corrupted (use md5 hash to ensure)
     and also Refer this Link :  https://stackoverflow.com/questions/26360403/uploading-a-base64-encoded-image-to-node-js-server-not-working
    0