Skip to main content
Participant
June 25, 2010
Question

cffileupload - 2 GB and up issue

  • June 25, 2010
  • 1 reply
  • 1966 views

I'm running a new install of CF9, on IIS 6 on Windows Server 2003.

I need cffileupload to be able to upload large files, in the neighboorhood of 5 GB. However, I'm running into this problem even after I copied the CFIDE scripts to a "publically" available directory. Trying to set upload limits greater than 2 GB throws an error a la CF8. If I set the max allowable file size in the administrator and the tag to 4096 MB, it will always show a "File size cannot exceed 0 MB" error. If I set the size in both places to 2000 MB, it works. At 2048 MB it will always show a "File size cannot exceed -2048 MB" error. In the urlscan.ini file, I have the MaxAllowedContentLength attribute at 5 billion bytes.

    This topic has been closed for replies.

    1 reply

    chrisbowyer
    Known Participant
    June 26, 2010

    I just tried maxuploadsize="1000000" and got no error running the page. Just in case, note that size is in MB not bytes. Also, I don't think there is a maxallowedcontentlength attribute in cffileupload.

    HaikibaAuthor
    Participant
    June 28, 2010

    Setting maxuploadsize to 1000000 yields a "File size cannot exceed 576 MB" error. It's strange in that at 2048 MB it loops around to the negatives. At a maxuploadsize of 2049,the error says "File size cannot exceed -2047 MB." Where I reference maxuploadcontength is in the urlscan.ini file, which governs the largest size file IIS will accept.

    tclaremont
    Inspiring
    June 28, 2010

    I believe IIS has a customizable max upload limit setting, so even if the CF setting were adequate it may still fail when hitting the web server limit.

    It has been quite a while since I faced this issue, so don't quote me on it, though.