DICOMcloud icon indicating copy to clipboard operation
DICOMcloud copied to clipboard

maximum request size exceeded for STOWRS

Open shelbypereira opened this issue 4 years ago • 3 comments

When using Stowrs I get a maximum request size exceeded error. I was able to fix it easily by modifying the web.config as below.

https://stackoverflow.com/questions/3853767/maximum-request-length-exceeded

I copy the relevant part of the answer for convenience, in most cases 4MB will be too small particularly for uncompressed data which is what I am testing with.

if you are using IIS for hosting your application, then the default upload file size is 4MB. To increase it, please use this below section in your web.config -

For IIS7 and above, you also need to add the lines below:

<system.webServer> <requestFiltering> <requestLimits maxAllowedContentLength="1073741824" /> </requestFiltering> </system.webServer> Note:

maxRequestLength is measured in kilobytes maxAllowedContentLength is measured in bytes which is why the values differ in this config example. (Both are equivalent to 1 GB.)

shelbypereira avatar Jun 17 '20 18:06 shelbypereira

I think if you data is big. use DICOMcloud's default upload function is Not a good idea. You know the iis web site application has limit for one http post data size. And You know when post data is large , the Performance will be very low. I think the best way is custom the upload style. Such as:

  1. upload many dicom files to server disk use ftp.
  2. save the server disk dicom file to DICOMcloud direct use custom StorageHelper class function. Not use http post style to upload file to DICOMcloud.

Now i am research the function.

wangning08115 avatar Jun 27 '20 14:06 wangning08115

@shelbypereira the way you solved this is right and expected. This has nothing to do with DICOMcloud but rather a configuration of ASP.NET and IIS for any upload to the server.

Currently I have this set in DICOMcloud to be 10MB but I don't see a problem if this is higher by default as long as it is reasonable.

Zaid-Safadi avatar Jun 28 '20 02:06 Zaid-Safadi

I've updated the code to allow up to 100MB by default bbcb4e0

Zaid-Safadi avatar Jul 11 '20 15:07 Zaid-Safadi