Hello, I try to send a pdf file using the upload component to a post webhook in a form-data. But I can’t…
How can I do something like that :
Upload
<script>
function uploadFile() {
const fileInput = document.getElementById('fileInput');
const file = fileInput.files[0];
if (file) {
const formData = new FormData();
formData.append('file', file);
// Utilisez Fetch au lieu de cURL pour les requêtes depuis le navigateur
fetch('<http://example.com/upload>', {
method: 'POST',
body: formData
})
using the configure operation pannel?