html - How to store files in local storage using jquery -


i store uploaded files locally(local-storage) using jquery can me

<input name="file" type="file" />     <input type="button" value="store" /> </form> 

note

you cant upload , store files using localstorage.

if want use local storage,you dnt need jquery. html5 provides feature.

localstorage.setitem('userid','2'); //to set data  var userid = localstorage.getitem('userid'); // data  localstorage.removeitem('userid'); //to remove data 

refer link more details local storage


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -