This is a migrated thread and some comments may be shown as answers.

Refresh in Firefox and autoUpload:true

1 Answer 386 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Gunnar
Top achievements
Rank 1
Gunnar asked on 10 Sep 2014, 01:29 PM
It seems that a refresh (F5) in Firefox automatically re-uploads a previously uploaded file. In other browsers a browser refresh resets the control to its initial state as expected.

You can reproduce it with the upload demo http://demos.telerik.com/kendo-ui/upload/events by selecting a file (uploaded) and hitting F5. You can see that the file is automatically remembered and uploaded.

Any way to avoid this?

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimiter Madjarov
Telerik team
answered on 10 Sep 2014, 02:28 PM
Hi Gunnar,


The reason for the issue is that Firefox has a cache mechanism which stores the values of the input elements on page reload. Here is a very simple example, which demonstrates that this is the case even with a regular input type="file" element. As a workaround, you could set the autocomplete="off" attribute to the input element. Here is a runnable example, which demonstrates this.

I wish you a great day!

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Upload
Asked by
Gunnar
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or