Skip to main content
October 5, 2010
Question

Need urgent help to upload a file size of 40MB in CF5

  • October 5, 2010
  • 1 reply
  • 3351 views

Hi Guys

I am using Colfusion 5 on IIS5 server on win2k server, i want to upload a larger file up to 40MB, when i tried to upload large file 37.1MB , bellow error will come

HTTP Error, '503' occurred. 503 Service Unavailable. The server is currently unable to handle the request due to a temporary overloading or maintenance of the server.  Please see http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.4 error code definitions for more information.

Kindly suggest how it can be possible to upload file size increase to 40Mb ? and what is the limit of maxupload file size in coldfusion 5 ? Kindly help and advice.

Thanks

Muzi

    This topic has been closed for replies.

    1 reply

    tclaremont
    Inspiring
    October 5, 2010

    It has been forever since I used CF5 or that version of IIS, so do a little research before proceeding.

    I believe there are TWO places that limit the size of an upload. One is a ColdFusion attribute, and the other is an IIS attribute. I think both of these settings need to be above the 40mb that you plan on uploading.

    Also, of course, you need to know if there is enough RAM and physical disk space to accomodate the file in question on the server, too.

    October 5, 2010

    hi thanks for your comments, as i not found any way yet in IIS5 to increase the file upload size, else i increased the size in cf code.

    \upload\index.pacq
    so.addVariable("maxFileSize", "104857600");
    so.addVariable("maxFileCount", "1");

    Max file size, i increased it a lot but no success. Can you know how we can inrease the upload file size in IIS5 ??


    Inspiring
    October 6, 2010

    Sorry, impossible for me to know, but I suspect you are running out of available RAM on your server.  Likely the error is triggered in IIS before ColdFusion has even touched it.  512 MB Ram is an extremely small amount for a web server. The error seems to be indicating the server is overwhelmed, even temporarily.  From what you are reporting this isn't a CF error code but from your web server itself. 

    Remember that when you upload a file it is putting the full content of that file in memory before writing it to disk.  Uploading a large file is taking up RAM.


    In addition to Josh's info, I'll add that I recall that ColdFusion 5 and earlier (when CF server was still implemented in C++, not Java as in CFMX 6 and up) had a memory requirement of 2-3x that of the actual file being uploaded.  So a 50MB file upload might cause the CF server process to momentarily require an additional 100-150MB memory.  A file upload that resulted in the server attempting to use more memory than was available to it would typically result in a CF crash (process dies, CF restarts).