angularjs - Uploading users data using CSV file with flow JS -


i want provide upload functionality angular js application , want restrict user upload csv/xsl files only,and file size must restricted 100kb ,the users data file should stored in local storage of browser using flow js, new flow js ,can give me hint or code-snippet implement this.i don't wanna use backend local storage store data

to restrict selectable files csv , xls or xslx, use flowjs assignbrowse method :

.assignbrowse(domnodes, isdirectory, singlefile, attributes) 

this way

flow.assignbrowse(element, false, false, {"accept": ".csv,.xls,.xlsx"}); 

read official docs more : https://github.com/flowjs/flow.js/#methods

unfortunately, no limit filesize.

but you'll find useful information on this thread :


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -