Last updated 8 months ago
Retrieve the signed url for the specified file
const response = await fetch('/file', { method: 'GET', headers: {}, }); const data = await response.json();
{}
Uploads a file using a base64 string
const response = await fetch('/file/upload', { method: 'POST', headers: { "Content-Type": "multipart/form-data" }, body: JSON.stringify({ "originalName": "text", "base64String": "text", "mimeType": "text" }), }); const data = await response.json();