MoralisWeb3 / Moralis-JS-SDK

Moralis Official Javascript SDK

Home Page:https://docs.moralis.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Moralis.Web3API.storage.uploadFolder not set data in the axios

LeoTeng opened this issue · comments

New Bug Report

Checklist

Issue Description

The uploadFolder function set body, but AxiosRequestConfig "body" parameter does not exist;
So get the exception "Missing files from body"
need update the code ,set body change to set data.

And the doc should be update, because of was wrong,the source code bodyParams type is "data".

image

image

Steps + code to reproduce

Actual Outcome

Expected Outcome

Environment

Server

  • Moralis server version: 0.0.369

Client

  • Moralis SDK version: 1.5.9"
  • Operating system: Window 10
  • Browser: Chrome

Logs

Thanks, this has been fixed in v1.10