Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Upload from the browser to Cloudinary with no server
<!-- This example is for a blog post that can be found at - read there to find out how to use it -->
<!DOCTYPE html>
<title>Dropzone Example</title>
<div id="dropzone-area" style="width:700px;height:700px;display:block;margin:20px auto;border:1px solid red;"></div>
<script type="text/javascript" src=""></script>
<script type="text/javascript">
var myDropzone = new Dropzone(document.getElementById('dropzone-area'), {
uploadMultiple: false,
parallelUploads: 6,
url: ''
myDropzone.on('sending', function (file, xhr, formData) {
formData.append('api_key', 123456789123456);
formData.append('timestamp', / 1000 | 0);
formData.append('upload_preset', 'presetname');
Copy link

bobmoff commented Mar 15, 2017

awesome! exactly what i needed. thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment