Jonathan
Jonathan

Reputation: 1833

input[type=file] slow to populate

In Chrome (37), Firefox (31) and Internet Explorer 11 the first time I open a file using the file input;

<input type="file" name="test" />

there is a significant delay before the file name is shown on screen. Using IE9/10 the file name is shown instantly as is also the case when the file input is used additional times with the other browsers.

Example - JSFiddle

Is there a reason for this change of behaviour, and can it be fixed?

Upvotes: 4

Views: 3530

Answers (2)

mishaqman
mishaqman

Reputation: 29

It may be because of cache. Try enabling cache as shown in the attached screenshot:

enter image description here

Upvotes: 0

Kenneth Chan
Kenneth Chan

Reputation: 530

I just found the reason. I am not sure if the solution can be applied for you. The pop up dialog go slow because I choose a network path for the previous file upload or a path that no longer exist. so if you choose a file on the local disk. Next time, The problem will be solved.

Upvotes: 1

Related Questions