javascript - Download file from url and then upload to another site via js -


i have requirement download file url, post site via single js call.

use case:

  1. user enter file url click re-upload button

conditions:

  1. the file either audio/wav, audio/mp3, or zip file multiple wav , mp3
  2. i need post using multipart/form-data

questions:

  1. how create multipart/form-data request via js manually?
  2. correct me if wrong, think need store file content input field once download it.
    • how encode file content string comes byte[] when uploaded?


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -