Cloudinary Blog
Introducing the Cloudinary Upload Widget v2

At Cloudinary, we manage the entire pipeline of media assets for thousands of customers of varying sizes from numerous verticals. Cloudinary is an end-to-end solution for all your image and video needs, including upload, storage, administration, manipulation, optimization and dynamic delivery.

As part of our commitment to support the entire flow of media assets, we introduced an intuitive upload widget a few years ago: an out­-of­-the-­box, interactive UI enabling your users to upload media from a variety of sources for immediate use on your website or mobile app.The upload widget is interactive, feature rich, and simple, requiring only a single line of code to integrate. Afterwards, you can seamlessly and effortlessly add content to your site or app with no need for in-house upload capabilities.

Today, we are excited to announce the new and improved version of our upload widget, completely redesigned and re-worked, taking advantage of new technologies such as React, ES6, webpack, and rollup.js. The widget has an upgraded design, improved mobile support, and more control over customization and localization.

A Widget for Every Need

The Cloudinary upload widget is already being used by thousands of customers, supporting millions’ of uploads, in a variety of verticals:

Social Media social media

Social media apps are all about visual sharing. Social media apps use our widget to enable their users to easily upload their own content, whether it's a new profile picture, photos from their latest holiday, a video of their dancing dog, or any other media they may wish to share with their friends and family. Social media users also love special effects. With Cloudinary, it's simple to add options that enable your users to select from our extensive collection of filters, effects, and other image and video transformation options and apply them to the images they upload.

Marketplace marketplace

Visualization is a vital aid to selling any merchandise, and online stores often have a large team of in-house and external professionals who create the graphics, photos and videos that will sell their products. These companies often take advantage of the upload widget by embedding it into their back-end apps, making it simple for store owners, photographers, and other creative-team members to upload product images and videos directly into the store website.

News and Media news & media

When it comes to news media, speed, simplicity, and mobility are essentials for success. Newspaper websites, user forums, and direct news feeds use Cloudinary's upload widget to simplify the process of uploading media from any device anywhere.

eCommerce and Personalization eCommerce & personalization

The upload widget provides users with a smooth and simple process to upload images that can be printed on T-shirt, canvas, glass, etc., and then preview the end result directly on their chosen product, making it easy and fun for users to buy personalized products.

Advertising advertising

Monetization is a key element for many websites. The upload widget can enable your advertising clients to quickly and effortlessly upload their advertising media to their account for distribution.

A Use Case: Finalsite

Finalsite is the leading digital marketing and communications platform for schools and districts around the world. 2,200 schools around the world, in 80 countries choose Finalsite as their partner.

Finalsite implemented Cloudinary’s solution to enhance media and document management in their CMS' re-designed asset manager. They embedded the Cloudinary upload widget into their CMS, Composer, to allow parents, students and staff to contributes images, videos, and documents to their schools' websites. The Cloudinary upload widget allows Finalsite's users to upload new files, import them from their legacy file system or import from remote sources via a simple and smooth interface.

Alexander Wack, Product Manager at Finalsite, shared a bit about his experience on this project:

social media "Cloudinary allowed us to provide our users with a complete, user-friendly, media upload flow, that was smooth and easy to integrate into our application. Cloudinary's automatic transformation and delivery helps ensure all media is automatically compressed, ensuring optimized delivery without any manual intervention. Thanks to our decision to use the Upload Widget, our Development team can focus on creating the best software for schools while utilizing Cloudinary's expertise to ensure all media aspects are covered."

A Widget for Your Needs

Regardless of your market sector or uploading requirements, these upload widget features will help you achieve your upload goals:

  • Mobile Friendly - responsively resizes to fit in the available width, automatically adjusting on-the-fly for any screen size.
  • Customizable UI - extensive flexibility via the API for customizing fonts, colors, styles and text to fit your application's look and feel.
  • Event Support - comprehensive set of events for triggering custom behavior.
  • Upload from multiple sources - enables your users to upload media assets to your website or application directly from a variety of sources, including local device storage, device camera, Google image search, and from social media accounts such as Dropbox, Instagram or Facebook.
  • Minimizable - with upload progress to enable your users to continue working.
  • Bells and Whistles - supports drag & drop functionality, interactive cropping, upload progress indication, thumbnail previews, and more…

Integrating the upload widget into your application is simple: just include the upload widget script and then call the widget with a single line of code.

<script src="https://widget.cloudinary.com/v2.0/global/all.js" type="text/javascript"></script>  

<script type="text/javascript">  
  cloudinary.applyUploadWidget('#upload_widget_opener',{ 
    cloudName: 'demo', uploadPreset: 'blog_upload' }, 
    (error, result) => { });    
</script>

That's it --that's all that's needed to implement the default upload widget.

You can try a live example right now by clicking the button below and uploading an image. Just for fun, this widget has been set up to display a cartoonified version of the image you upload as a thumbnail right here in my blog page!

Of-course there are plenty of ways to extend the default functionality and override the default settings. Check out the upload widget docs for that.

A Interactive Demo Page - Tweek, Copy, and Paste

Just to make your life that much easier, we've created a live Upload Widget Demo App that lets you experiment with the various customization options available for the widget. Not only can you use this demo to get a better idea of what the upload widget offers, but the Demo App also automatically generates the code template you need to implement your customized widget on your own site. Just tweek, copy, and paste!

Summing Up

Cloudinary's upload widget is a complete, interactive and fully customizable user interface that addresses the upload needs faced by app developers in nearly every market segment, completely eliminating the need to develop in-house interactive media upload capabilities.

For more information on the upload widget, please see the documentation. If you have any questions, please comment below or test it on your own site by signing up for free.

Recent Blog Posts

Auto-Generate Video Previews with Great Results Every Time

If you are an avid YouTube viewer or a Netflix binger, you might have noticed some fascinating changes in their latest preview thumbnails. They sure are attention grabbing, aren’t they?

Video previews are becoming more and more popular, not the least because they entice viewers, attract clickthroughs and, more often than not, gain a happy and loyal audience. Problem is, the task sounds like an art in itself. Just how can you go about creating appealing video previews without having to rely on movie professionals? Have you ever wished that you could quickly create video previews like those on YouTube and Netflix, but still rest assured that they'll include the good stuff?

Read more
Hipcamp Optimizes Images and Improves Page Load Times With Cloudinary

When creating a website that allows campers to discover great destinations, Hipcamp put a strong emphasis on featuring high-quality images that showcased the list of beautiful locations, regardless of whether users accessed the site on a desktop, tablet, or phone. Since 2015, Hipcamp has relied on Cloudinary’s image management solution to automate cropping and image optimization, enabling instant public delivery of photos, automatic tagging based on content recognition, and faster loading of webpages. In addition, Hipcamp was able to maintain the high standards it holds for the look and feel of its website.

Read more
New Image File Format: FUIF: Why Do We Need a New Image Format

In my last post, I introduced FUIF, a new, free, and universal image format I’ve created. In this post and other follow-up pieces, I will explain the why, what, and how of FUIF.

Even though JPEG is still the most widely-used image file format on the web, it has limitations, especially the subset of the format that has been implemented in browsers and that has, therefore, become the de facto standard. Because JPEG has a relatively verbose header, it cannot be used (at least not as is) for low-quality image placeholders (LQIP), for which you need a budget of a few hundred bytes. JPEG cannot encode alpha channels (transparency); it is restricted to 8 bits per channel; and its entropy coding is no longer state of the art. Also, JPEG is not fully “responsive by design.” There is no easy way to find a file’s truncation offsets and it is limited to a 1:8 downscale (the DC coefficients). If you want to use the same file for an 8K UHD display (7,680 pixels wide) and for a smart watch (320 pixels wide), 1:8 is not enough. And finally, JPEG does not work well with nonphotographic images and cannot do fully lossless compression.

Read more