How do we get name,size,type information of uploaded files through javascript

In this post, I am going to explain you how can we get all information of uploaded files like name,size,type  on button click.

In this form,we have two button

1) Input type file button through which we can upload multiple files

2)Input type button:  On click of this button we call getFileNames() function

3)getFileNames() function gives the name,size,type  of uploaded files.

Function getfileNames()

In this function,

file[i].name :  gives names of uploaded files

file[i].size : gives size of uploaded files

file[i].type : gives type of uploaded files

 

654 total views, 1 views today

Share this OnShare on FacebookTweet about this on TwitterShare on LinkedInShare on Google+

Leave a Reply