Skip to content

Cannot upload multiple files(Images) #64

Closed Answered by kevinwaxi
kevinwaxi asked this question in Q&A
Discussion options

You must be logged in to vote

i dont know why i always forget to transform data

function submit() {
  form.transform((data) => {
    return {
      ...data,
      gallery: data.gallery.map(item => item.serverId),
    }
  }).submit({
    preserveScroll: true,
    onSuccess: () => {
      form.reset()
      closeDialog()
    },
  })
}

Awesome package as always

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kevinwaxi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant