Many people don't know File
implements Blob
, the only difference is File
has .name
..lastModified
in most cases don't need convert to File
.
const file = new File([blob], {name: '1.jpg'});
formData.append('file', file);
const file = new File([blob], {name: '1.jpg'});
URL.createObjectURL(file);
formData.append('file', blob, '1.jpg');
URL.createObjectURL(blob);
This rule might need type info.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too