![jquery single file upload example jquery single file upload example](https://www.jqueryscript.net/images/aks-file-upload.jpg)
Here’s a slightly different flat upload field created by Geoffrey Crofte.
![jquery single file upload example jquery single file upload example](https://www.jquery-az.com/wp-content/uploads/2016/11/14.1-jQuery-upload.png)
If you don’t mind working with jQuery, these options are phenomenal. Note that this does require a good amount of jQuery because most of these features cannot be altered with CSS. Through these styles you can change the upload field text, size, button color or remove the text field to just use a single button. This is the result (and it’s one heck of a result, if I can say so). jQuery Custom File Upload Inputĭeveloper Terry Young took a bit of jQuery and used it to enhance some existing upload fields. It’s basically a super-clean alternative to the default input style and it runs on pure CSS3. You can change the style, color, icon or anything else to get this matching your site. It works with the Font Awesome upload icon and simply wraps a whole circular area around the upload field. It uses pure CSS3 to change the input style into one large button. If you’re looking for a JS-free upload field then have a look at this example, created by Stephen Baker. The interface is super-clean and the upload feature blends right in. But now that CSS supports base64, this is another alternative. On your own server, you can use this temporary file to display the picture. Whenever you upload images to a server, they’ll generate a temporary file. It works by pulling images through JavaScript, then converting them into base64 to embed into CSS. With each photo you upload, it’ll show you a preview right on the page. It lets you upload photos into a gallery right from your computer.
![jquery single file upload example jquery single file upload example](https://www.pakainfo.com/wp-content/uploads/2018/10/jQuery-File-upload-size-Limit-validation-Example-600x400.png)
![jquery single file upload example jquery single file upload example](https://www.cloudways.com/blog/wp-content/uploads/uploading.png)
Here’s one of the most complex, yet impressive snippets I’ve seen on CodePen. Definitely a smart idea and it’s fully semantic to boot. That label element is attached to the input field, which is hidden off the page. The clickable area is an HTML label styled with CSS. But this input field is actually built to support both touch and click, along with drag and drop. It’s heavily customized with JavaScript functions handling the drag and drop effect. Drew Vosburg followed this approach to build a sweet upload form hosted freely on CodePen. Custom Uploaderĭaily dev projects are a great way to sharpen your skills. If you do bring this snippet into your site, it’s recommended that you add a typical upload field alongside the drag & drop area. I think that’s a usability nightmare, but this is also just a sample snippet used for testing – so it’s not geared towards perfect usability. Just note this does not use the input element – so there’s no way to click for uploading. It’s very basic, with just a small square upload space with drag & drop support. Take a look at this design for an example of a quality mobile-friendly upload field. Mobile users may upload files to the web through these same forms, so utilizing a responsive input field is a great idea. If you do any sort of modern web design, then you know you have to go responsive. If you know your way around JavaScript, this can work as a handy template for building your own file upload UI. And while it does use the standard HTML input field, it also handles the uploading process with custom JS functions. It does rely on jQuery and a good amount of JS/CSS to work. That’s exactly what Aaron did with this snippet. They often have a drag and drop area with a big “click here” space to launch the upload window. Think about big tech sites like Dropbox, Google+ and Facebook. Developer Aaron Vanston created this file upload as a replica of the ones we see on larger websites. Here’s a design that gets a little more abstract with the upload field. So this is also usable with older browsers and should work on mobile, too. It works just as you’d expect and it runs on the standard HTML input element. All you’ll have to do is change up the color scheme and position it properly within your form. You can add this file upload design onto any page and get it looking great. It borrows on the trend of flat design, which avoids gradients by focusing on single colors – often with a monochromatic color scheme. Flat File Uploadĭeveloper Wallace Erick created this flat upload field with just a bit of CSS and JavaScript.