Upload & Download (Front-end)
Upload
const url = `${process.env.REACT_APP_IMAGE_SERVICE_URL}/api/images`;
const formData = new FormData();
formData.append("file", file);
formData.append("type", "hi");
const { data } = await axios.post(url, formData);<form action="/upload" method="post" enctype="multipart/form-data">
<input type="text" name="text" value="text default" />
<input type="file" name="file1" />
<input type="file" name="file2" />
<button type="submit">Submit</button>
</form>Download
Data Url
Server Url
Blob (Binary large object)
Streaming

References
Last updated