Problem with uploading big file in the Shared Files module

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
2/27/2008 8:30:28 AM
Gravatar
Total Posts 3

Problem with uploading big file in the Shared Files module

Hello!

I have Shared Services module installed on my site. I uploaded many small files successfully, so the module works fine.

But when I tried to upload big audio file (mp3, 50Mb) on my site, I got folowing:

- upload progress bar = 0% forever (opens in new small window)
- some time later I got error in the main window - "The system cannot find the file specified."

 

Is it some sort of restriction on max filesize in Shared Module or it's a server-side problem with IIS configuration?

Thanks!

2/28/2008 12:36:15 PM
Gravatar
Total Posts 18439

Re: Problem with uploading big file in the Shared Files module

I think there are a number of things that can affect it. I forget the exact name of the property but there is an IIS metabase property I think that can limit file upload size or max request length.

There is also a setting in Web.config:

<httpRuntime maxRequestLength="1000000" executionTimeout="360" useFullyQualifiedRedirectUrl="true" />

You could try setting a higher number there, but it may also be enforced from machine.config

NeatUpload, which is what we use for uploading files in mojoPortal also has settings for this and you may want to review their documentation about Web.config settings.

Hope it helps,

Joe

11/24/2009 3:48:20 PM
Gravatar
Total Posts 116
http://www.zoomicon.com http://birbilis.spaces.live.com http://www.delicious.com/birbilis http://twitter.com/Zoomicon

Re: Problem with uploading big file in the Shared Files module

If you don't use MediumTrust configuration, then check that your Web.config uses the following (an increased maxRequestLength):

btw, if you change anything at Web.config make sure you do this change every time you update mojoPortal (Web.config is overwritten and you can't place this setting at user.config [just copy it at user.config commented out to have it handy])

<neatUpload xmlns="http://www.brettle.com/neatupload/config/2008"

useHttpModule="true"

maxNormalRequestLength="4096"

maxRequestLength="2097151"

multiRequestUploadHandlerUrl="~/NeatUpload/MultiRequestUploadHandler.ashx"

maxUploadRate="300"

>

</neatUpload>

1) if you use MediumTrust, then have to set "useHttpModule" to "false" and search in web.config and uncomment the "httpRuntime maxRequestLength" setting (according to NeatUpload documentation you have to use 3600 for the executionTimeout for an hour of wait not 360). Note that this setting makes your site vulnerable to DoS (Denial of Service) attacks and you also seem to lose the progress bar dialog but don't think there's other option in MediumTrust setting

2) If you use IIS7 you also have to do the following (see discussion at http://forums.iis.net/p/1108662/1702390.aspx):

at an elevated (run as admin) command prompt enter:

%windir%\system32\inetsrv\appcmd set config "MySite/MyApp" -section:requestFiltering -requestLimits.maxAllowedContentLength:104857600 -commitpath:apphost

you can verify that the setting was inserted OK by doing and checking out the output:

%windir%\system32\inetsrv\appcmd list config "MySite/MyApp" -section:requestFiltering

the command is changing the maxAllowedContentLength request limit that IIS7 requestFiltering (the replacement for urlscan) has introduced

11/24/2009 6:40:59 PM
Gravatar
Total Posts 116
http://www.zoomicon.com http://birbilis.spaces.live.com http://www.delicious.com/birbilis http://twitter.com/Zoomicon

Re: Problem with uploading big file in the Shared Files module

NeatUpload documentation also mentions the following alternative regarding the IIS7 issue:

(Optional) To allow larger uploads than the 30MB default used by IIS7, add the following to your Web.config under the configuration/system.webServer/security/requestFiltering section:

 <requestLimits maxAllowedContentLength="size_in_bytes"></requestLimits>

Note that for such a change to be allowed, you or your hosting provider might need to change the machine's %SystemRoot%/system32/inetserv/config/applicationHost.config file such that the overrideModeDefault attribute for the requestFiltering section is Allow instead of Deny.



You must sign in to post in the forums. This thread is closed to new posts.