Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need json object on .upload type #575

Open
yogithesymbian opened this issue Nov 25, 2021 · 0 comments
Open

need json object on .upload type #575

yogithesymbian opened this issue Nov 25, 2021 · 0 comments

Comments

@yogithesymbian
Copy link

yogithesymbian commented Nov 25, 2021

same issue : #386 AND #226

the first rule : i can't access the backend version 2.
my backend version 1 didnt have marks and its work properly, but on update their added object request.

the backend need object request for example

{
  "file": file,
  "track": "bali",
  "marks" : [ // these the marks what i mean .
      {
          id: 1,
          name: "yogi"
       }
   ]
}

i have use .toString and toTypedArray but get an errors, the server cant accept the request.

.addMultipartParameter("track", data.track)
.addMultipartParameter("marks", data.marks.toString())
.addMultipartFile("file", file)

anyone have solution with this FAN Library ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant