The Cloudinary jQuery File Upload plugin allows you to effortlessly upload assets to your cloud.
This Readme provides basic installation and usage information. For the complete documentation, see the JQuery SDK Guide.
- Key Features
- Browser Support
- Installation
- Usage
- Contributions
- About Cloudinary
- Additional Resources
- Licence
- Upload assets.
Chrome, Safari, Firefox, IE 11
npm install cloudinary-jquery cloudinary-jquery-file-upload blueimp-file-upload
Or
yarn add cloudinary-jquery cloudinary-jquery-file-upload blueimp-file-upload
- Include the javascript files in your HTML. For Example:
<script src="node_modules/jquery/dist/jquery.min.js" type="text/javascript"></script>
<script src="node_modules/blueimp-file-upload/js/vendor/jquery.ui.widget.js" type="text/javascript"></script>
<script src="node_modules/blueimp-file-upload/js/jquery.iframe-transport.js" type="text/javascript"></script>
<script src="node_modules/blueimp-file-upload/js/jquery.fileupload.js" type="text/javascript"></script>
<script src="node_modules/cloudinary-jquery-file-upload/cloudinary-jquery-file-upload.min.js" type="text/javascript"></script>
- Configure cloudinary-jquery
$.cloudinary.config({ cloud_name: "demo"});
See more ways to configure cloudinary-jquery
- Add a file input tag
<input
name="file"
type="file"
class="cloudinary-fileupload"
data-cloudinary-field="image_id"
data-form-data="{ "upload_preset": "user_upload1",
"callback": "https://www.example.com/cloudinary_cors.html"}"
/>
See full documentation including upload events and image validation before upload
$(document).ready(function() {
if($.fn.cloudinary_fileupload !== undefined) {
$("input.cloudinary-fileupload[type=file]").cloudinary_fileupload();
}
});
- Ensure tests run locally (
npm run test
) - Open a PR and ensure Travis tests pass
If you run into an issue or have a question, you can either:
- Open a Github issue (for issues related to the SDK)
- Open a support ticket (for issues related to your account)
Cloudinary is a powerful media API for websites and mobile apps alike, Cloudinary enables developers to efficiently manage, transform, optimize, and deliver images and videos through multiple CDNs. Ultimately, viewers enjoy responsive and personalized visual-media experiences—irrespective of the viewing device.
- Cloudinary Transformation and REST API References: Comprehensive references, including syntax and examples for all SDKs.
- MediaJams.dev: Bite-size use-case tutorials written by and for Cloudinary Developers
- DevJams: Cloudinary developer podcasts on YouTube.
- Cloudinary Academy: Free self-paced courses, instructor-led virtual courses, and on-site courses.
- Code Explorers and Feature Demos: A one-stop shop for all code explorers, Postman collections, and feature demos found in the docs.
- Cloudinary Roadmap: Your chance to follow, vote, or suggest what Cloudinary should develop next.
- Cloudinary Facebook Community: Learn from and offer help to other Cloudinary developers.
- Cloudinary Account Registration: Free Cloudinary account registration.
- Cloudinary Website: Learn about Cloudinary's products, partners, customers, pricing, and more.
Released under the MIT license.