Demos

FineUploader is the easiest javascript file uploader library to set up.

Code examples are provided, whether you are using a jQuery wrapper, or plain JavaScript.

Basic Setup

Want to upload files to your own server? You need only to include a CSS file, a JavaScript file, and handle the uploads on the server side according to the technology you are using. There are absolutely no other dependencies.

You can quickly set up an HTML page in order to use Fine Uploader:

  1. Download and unpack the latest version of Fine Uploader.
  2. Use one of the provided server scripts, or write your own.
  3. Setup your HTML and javascript.
  4. Upload!

This demo uses the default template bundled with Fine Uploader UI. For details, see the styling documentation.


View Code
jQuery
No Dependencies
                                    
                                
                                    
                                


Display Image Previews

In this demo, we're utilizing Fine Uploader 4's client-side image preview generation feature. Note that client-side previews are only supported in modern browsers (not IE9 and older). For more info, see the thumbnail feature docs.

This uploader is also restricted in

  • allowed extensions (jpeg, jpg, gif, and png)

This demo uses the default simple thumbnails template bundled with Fine Uploader UI. For details on customizing templates, see the styling documentation.

View Code
jQuery
No Dependencies
                                    
                                
                                    
                                

Manually Trigger Uploads

The default behavior of Fine Uploader is to immediately attempt to upload files as they are selected. One option allows you to simply queue all files, and then start uploading at a later time by calling uploadStoredFiles() on your Fine Uploader instance.

Upload now

Since we need to catch click events on an HTML element, we will be using jQuery to handle events and selectors for the sake of simplicity.

You can obviously take it further with the optional jQuery wrapper demos.

View Code
jQuery
No Dependencies
                                    
                                
                                    
                                

Edit File Names (Pre-Upload)

Want to allow your users to edit file names before they are uploaded, in all browsers? No problem!

Upload now

This demo uses the default template bundled with Fine Uploader UI. For details, see the styling documentation.

View Code
jQuery
No Dependencies
                                    
                                
                                    
                                

Various Options

There are various options available to you when using Fine Uploader. In this demo, we've used a small subset of these options. To see all available options and their usage, please refer to Fine Uploader documentation on the Github repository.

We are implementing the following options in this demo:

  • restriction to one file upload/selection at once (may not select multiple files),
  • restriction to jpeg, jpg, and txt files,
  • restriction to a maximum file size of 50 kB,
  • custom error display handler instead of the default alert box.

This demo uses the default template bundled with Fine Uploader UI. For details, see the styling documentation.

View Code
jQuery
No Dependencies
                                    
                                
                                    
                                

Limit Number of Uploaded Files

In this demo, we are using the itemLimit validation option to enforce a maximum item limit.

This demo uses the default template bundled with Fine Uploader UI. For details, see the styling documentation.

View Code
jQuery
No Dependencies
                                    
                                
                                    
                                

Bootstrapped Minimal Demo

Default settings, but we include support for Twitter Bootstrap.

In order to style your uploader’s look, you can customize the template classes as you like.

We use here both Fine Uploader and Twitter Bootstrap’s CSS and add some styling reset.

View Code
jQuery
No Dependencies
                                    
                                
                                    
                                

Upload Files Directly to Amazon S3

Fine Uploader has always supported uploading to your own server. Now you can remove the complexity and inefficiency of handling uploads on your local server by delegating to Amazon. Upload files directly to Amazon's Simple Storage Service from your browser! Want to upload to S3 without any server-side code at all? Have a look at our S3 no-server demo instead!

Below is a fully-functional live demo that also includes the native preview/thumbnail generation feature. Here, you can try out Fine Uploader S3 by sending files to one of our S3 buckets! You can also download the file after a successful upload.

This example demonstrates:

The server-side code for this demo was written in PHP. You can view the actual server-side code for this example in the Fine Uploader Server Github repository.

Please read the blog post on the Fine Uploader S3 module for more details.

Note: If you want to test the auto-resume feature, you must use any browser other than IE9 and older or stock Android and submit a large file 6-15MB. After at least 5MB have been uploaded (since each chunk is 5 MiB): close or refresh the page, re-submit the file, and watch Fine Uploader pick up from where it left off!


Try it out!

View Code
jQuery