Using jquery's uploadify, the solution that always crashes on Google Chrome

Source: Internet
Author: User

Recent projects have used jquery's uploadify, but testing in Google Chrome always crashes. Such as:

Because it is a Java project.

The solution is to add a parameter to the introduction of JS, timestamp can be, to prevent caching, so that every time the request. (This problem is because Google browser will cache files caused by)

<script type= "Text/javascript" src= ". /common/uploadify/jquery.uploadify.js?f=<%=system.currenttimemillis ()%> "></script>

These are also available online:

Based on the posts on StackOverflow,

    • ASP. NET Web from

      <script src="/Resources/uploadify/jquery.uploadify3.1Fixed.js?ver=<%=(new Random()).Next(0, 99999).ToString() %>" type="text/javascript"></script>
    • ASP. NET MVC

      <script type="text/javascript" [email protected]("~/Content/uploadify/jquery.uploadify3.1Fixed.js?ver=")@DateTime.Now.Ticks></script>
    • Php

      <script src="js/jquery.uploadify.min.js?ver=<?php echo rand(0,9999);?>" type="text/javascript"></script>

Using jquery's uploadify, the solution that always crashes on Google Chrome

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.