please help me to troubleshoot this download script

Discussion in 'Programming' started by kitling55, Jul 10, 2009.

  1. #1
    hello,

    I am fairly new to Coldfusion and I need help. I recently wrote some code attaches to a button to let user download some soundfiles. The hosting company complaint that this page sometime runs for a long time (like a minute or longer). I think I am using some pretty standard techniques and have no idea of what's wrong, could someone help me to identify the problem? Here are the codes:


    (... codes to cfset shortsf and sf ...)



    <cfoutput>
    <cfheader name="content-disposition" value="attachment;filename=#shortsf#">
    <cfcontent type="audio/x-ms-wma" file="#sf#">
    </cfoutput>


    Any help is much appreciated.



    Kitling Cheung.
     
    kitling55, Jul 10, 2009 IP
  2. Paul_K

    Paul_K Greenhorn

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #2
    If your file is large then it may take several minutes to send the file?
     
    Paul_K, Jul 13, 2009 IP
  3. kitling55

    kitling55 Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    they are sound files of 5M in size each.
     
    kitling55, Jul 14, 2009 IP