Transient Image File Upload Error - Image shows up as a broken link on first request

Discussion in 'Programming' started by elephantium, May 2, 2007.

  1. #1
    I have a CFM page that allows users to upload files to my server, then view the files they just uploaded. However, on the page that actually displays the image, I get a strange error. The first time the page is loaded, I get a broken link instead of the image I uploaded. The second and subsequent times the page is accessed, the image displays fine.

    I've checked the HTTP requests, and the webserver is returning 88 bytes of what looks like binary data - but the response headers say:

    Content-Length 88
    Content-Type text/html
    Server Microsoft-IIS/6.0
    X-Powered-By ASP.NET
    Date Wed, 02 May 2007 21:10:15 GMT

    Instead of

    Content-Location http://server/file.jpg
    Last-Modified Wed, 02 May 2007 21:09:37 GMT
    Accept-Ranges bytes
    Etag "7050c930fe8cc71:3fa"
    Server Microsoft-IIS/6.0
    X-Powered-By ASP.NET
    Date Wed, 02 May 2007 21:12:44 GMT

    I'm really confused about why this is happening; does anyone have any insight into how I can stop this behavior?

    Thanks in advance!
     
    elephantium, May 2, 2007 IP