Dropzone Plus
Search…
With JavaScript
There are many ways to send data via JavasScript. This would be one of the easiest solutions:
1
<button onclick="submit()">Submit data</button>
2
3
<script>
4
function submit() {
5
let data = { name: 'Some name', someRandomData: 'some value' };
6
fetch("https://plus.dropzone.dev/_p/{YOUR_PROJECT_ID}", {
7
method: "POST",
8
body: JSON.stringify(data),
9
headers: { "Content-Type": "application/json" },
10
});
11
}
12
</script>
Copied!
This encodes the data as JSON and sends it to Dropzone Plus. Please note that the Content-Type needs to be set appropriately for it to be recognized.
Last modified 1mo ago
Copy link