@BozidarS: FileAPI is supported quite well nowadays and provides a number of useful options.
var file = document.forms['formName']['inputName'].files[0];
//file.name == "photo.png"
//file.type == "image/png"
//file.size == 300821
More Related Contents:
- Image convert to Base64
- Java script on focus instead of onclick
- How to set file input value when dropping file on page? [duplicate]
- jQuery selector for inputs with square brackets in the name attribute
- Javascript read file without using input
- How do you get the cursor position in a textarea?
- Mobile Safari: Javascript focus() method on inputfield only works with click?
- Escaping backslash in string – javascript
- How to get the containing form of an input?
- How do I use jQuery’s form.serialize but exclude empty fields
- Phone mask with jQuery and Masked Input Plugin
- JS Events: hooking on value change event on text inputs
- Format input value in Angularjs
- html() vs innerHTML jquery/javascript & XSS attacks
- Javascript loading CSV file into an array
- Javascript Input Text Masking without Plugin
- Detect when “cursor position inside input change” in jQuery?
- Disable spaces in Input, AND allow back arrow?
- How to force input to only allow Alpha Letters?
- How to dectect objects' overlaping situations in javascirpt? [closed]
- Turning live() into on() in jQuery
- Cross-browser window resize event – JavaScript / jQuery
- Remove everything after a certain character
- How to search JSON tree with jQuery
- How to make a simple image upload using Javascript/HTML
- Differences between contentType and dataType in jQuery ajax function
- Get the offset position of the caret in a textarea in pixels [duplicate]
- jQuery keyboard events
- JSON to string variable dump
- How is AngularJS different from jQuery