POST https://api.cloudinary.com/v1_1/iphfhgffjea/image/upload 400 (Bad Request)
Unable to upload image to cloudinary using jquery
Here's the code
<!DOCTYPE html>
<html>
<head>
<title>User Demo</title>
<script src="js/jquery-1.11.3.min.js">
</script><script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js">
</script><script src="js/jquery.ui.widget.js">
</script><script src="js/jquery.iframe-transport.js">
</script><script src="js/jquery.fileupload.js">
</script><script src="js/jquery.cloudinary.js">
</script></head><body><script>
$.cloudinary.config({cloud_name: 'ddiphgetf',api_key: "592533434936113"});
</script><h1>Upload Test</h1><input type="file" id="cloudinary-upload" data-cloudinary-field="image\_upload" data-form-data="" class="cloudinary-fileupload">
<div class="preview"></div><script>
var opts = {
timestamp: "1381941597",
callback: "http://localhost/cloudinary/html/cloudinary_cors.html",
signature: "c76bc740df464649306cf9433ca353fb279b77b5",
api_key: '592533434936113'
};
$(function(){
$('#cloudinary-upload').fileupload({
formData: opts,
url: "https://api.cloudinary.com/v1_1/ddiphgetf/image/upload"
});
});
</script></body></html>
-
Hi,
Sorry for the very late reply, we have noticed that this request was left unattended. I guess this is not relevant anymore but if it is, please open a support ticket and share your error message with us so.Thanks:)
0
Post is closed for comments.
Comments
1 comment