SM
Size: a a a
SM
M
СП
СП
СП
import FormData from "form-data";
const downloadUrl = "https://eoimages.gsfc.nasa.gov/images/imagerecords/73000/73751/world.topo.bathy.200407.3x5400x2700.png";
const uploadUrl = "http://localhost:8000/"
(async () => {
const downStream = await axios({
method: 'GET',
responseType: 'stream',
url: downloadUrl,
})
const formData = new FormData()
formData.append('file', downStream.data)
const headers = formData.getHeaders()
const upStream = await axios({
method: 'post',
url: uploadUrl,
headers: headers,
data: formData,
maxContentLength: 1000000000
})
})()
SM
import FormData from "form-data";
const downloadUrl = "https://eoimages.gsfc.nasa.gov/images/imagerecords/73000/73751/world.topo.bathy.200407.3x5400x2700.png";
const uploadUrl = "http://localhost:8000/"
(async () => {
const downStream = await axios({
method: 'GET',
responseType: 'stream',
url: downloadUrl,
})
const formData = new FormData()
formData.append('file', downStream.data)
const headers = formData.getHeaders()
const upStream = await axios({
method: 'post',
url: uploadUrl,
headers: headers,
data: formData,
maxContentLength: 1000000000
})
})()
꧁岡
import FormData from "form-data";
const downloadUrl = "https://eoimages.gsfc.nasa.gov/images/imagerecords/73000/73751/world.topo.bathy.200407.3x5400x2700.png";
const uploadUrl = "http://localhost:8000/"
(async () => {
const downStream = await axios({
method: 'GET',
responseType: 'stream',
url: downloadUrl,
})
const formData = new FormData()
formData.append('file', downStream.data)
const headers = formData.getHeaders()
const upStream = await axios({
method: 'post',
url: uploadUrl,
headers: headers,
data: formData,
maxContentLength: 1000000000
})
})()
СП
СП
SM
СП
а
а
rl
MK
MK
rl
꧁岡