Upload Video File Post size error

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

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.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
10/3/2012 3:16:51 PM
Gravatar
Total Posts 30

Upload Video File Post size error

Joe,

I am using mojo 2.3.9.0. Login as administrator.

I am getting Error Event code 3004 Post size Exceeded allowed limits. When uploading file From Edit Media Player.

I tried files .flv, .mp4. The size is just 11mb.

If I ftp file the video runs fine. I have include mime type for the web site. The user account and IWAM account has write ermissions to the data folder. 

Thanks

AS

 

10/3/2012 4:40:49 PM
Gravatar
Total Posts 30

Re: Upload Video File Post size error

I can upload files  of any type using video upload control only upto 2mb. How Can I Increase that limit?

Thanks

10/3/2012 5:38:42 PM
Gravatar
Total Posts 1196
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Upload Video File Post size error

There's a documentation page here about Supporting Large File Uploads. Hopefully that will help you resolve this.

Jamie

10/3/2012 8:05:49 PM
Gravatar
Total Posts 30

Re: Upload Video File Post size error

Jamie, 

We are not using neat upload. When I uncomment <httpRuntime  maxrequestsizelimit ....  Line In the web.config file as provided by mojo It starts giving configuration error effecting all the websites. So what I am doing wrong. I just cannot upload any file more then 2mb. I can only FTP. I did read the documentation but not getting the answer. 

Thanks 

AS

 

 

 

10/4/2012 5:04:23 AM
Gravatar
Total Posts 18439

Re: Upload Video File Post size error

There are some web.config settings that can limit this. See these settings, you may need to copy them into user.config and change their values to something higher.

<add key="UserFolderDiskQuotaInMegaBytes" value="300"/>
<add key="MediaFolderDiskQuotaInMegaBytes" value="6000"/>
<add key="AdminDiskQuotaInMegaBytes" value="12000"/>

<add key="UserFolderMaxSizePerFileInMegaBytes" value="10"/>
<add key="MediaFolderMaxSizePerFileInMegaBytes" value="30"/>
<add key="AdminMaxSizePerFileInMegaBytes" value="2000"/>

The bottom 3 are probably the main ones in this case.

Note that changes in user.config are not automatically detected so after setting them you need to touch Web.config to make it relaod settings.

Hope that helps,

Joe

10/4/2012 9:08:46 AM
Gravatar
Total Posts 30

Re: Upload Video File Post size error

Hi Joe,

 I added this in user.config

     <add key="UserFolderDiskQuotaInMegaBytes" value="30000"/>
    <add key="MediaFolderDiskQuotaInMegaBytes" value="60000"/>
    <add key="AdminDiskQuotaInMegaBytes" value="120000"/>
    <add key="UserFolderMaxSizePerFileInMegaBytes" value="2000"/>
    <add key="MediaFolderMaxSizePerFileInMegaBytes" value="2000"/>
    <add key="AdminMaxSizePerFileInMegaBytes" value="2000"/>

still I am getting this error if try to upload any file >3.9 mb in media folder or any user folder(that I Created). Upto 3.7mb I can upload anyfile in any folder.

Event code: 3004

Event message: Post size exceeded allowed limits.

Event time: 10/4/2012 10:00:03 AM

Event time (UTC): 10/4/2012 2:00:03 PM

Event ID: cafc73246fe14ac094eb3676355cb5bb

Event sequence: 587

Event occurrence: 4

Event detail code: 0

 

Application information:

Application domain: /LM/W3SVC/1/Root-4-129938324496139802

Trust level: Full

Application Virtual Path: /

Application Path: E:\~Sites\MojoPortal\

Machine name: xxxxxxxx 

Process information:

Process ID: 16892

Process name: w3wp.exe

Account name: xxxxx\IWAM_xxxxx 

Exception information:

Exception type: HttpException

Exception message: Maximum request length exceeded.

at System.Web.HttpRequest.GetEntireRawContent()

at System.Web.HttpRequest.GetMultipartContent()

at System.Web.HttpRequest.FillInFilesCollection()

at System.Web.HttpRequest.get_Files()

at Brettle.Web.NeatUpload.FileControl.InitializeFiles()

at Brettle.Web.NeatUpload.FileControl.get_Files()

at Brettle.Web.NeatUpload.FileControl.OnUnload(EventArgs e)

at System.Web.UI.Control.UnloadRecursive(Boolean dispose)

at System.Web.UI.Control.UnloadRecursive(Boolean dispose)

at System.Web.UI.Control.UnloadRecursive(Boolean dispose)

at System.Web.UI.Control.UnloadRecursive(Boolean dispose)

at System.Web.UI.Page.UnloadRecursive(Boolean dispose)

at System.Web.UI.Page.ProcessRequestCleanup()

at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

at System.Web.UI.Page.ProcessRequest()

at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)

at System.Web.UI.Page.ProcessRequest(HttpContext context)

at ASP.dialog_filedialog_aspx.ProcessRequest(HttpContext context)

at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

10/4/2012 9:16:52 AM
Gravatar
Total Posts 18439

Re: Upload Video File Post size error

4 MB is like the default IIS configured limit, but you can override it. Everything I know about it is in the article Supporting Large File Uploads that Jamie linked previously. 

Best,

Joe

10/4/2012 11:31:09 AM
Gravatar
Total Posts 30

Re: Upload Video File Post size error

Hi Joe,

We are using iis6, windows server 3. We have increased the limit by updating aspmaxrequestentityallowed in metabase.xml.

My User.config file now is

 <add key="UserFolderDiskQuotaInMegaBytes" value="30000000"/>
    <add key="MediaFolderDiskQuotaInMegaBytes" value="60000000"/>
    <add key="AdminDiskQuotaInMegaBytes" value="120000000"/>
    <add key="UserFolderMaxSizePerFileInMegaBytes" value="20000000"/>
    <add key="MediaFolderMaxSizePerFileInMegaBytes" value="20000000"/>
    <add key="AdminMaxSizePerFileInMegaBytes" value="20000000"/>

I did touch web.config file.  Web.config File holds the old values. Still I cannot upload anyfile more then 3.7 mb from anywhere in mojoportal. I can only FTP.

Appreciate any help.

Thanks

AS

 

10/4/2012 11:40:05 AM
Gravatar
Total Posts 18439

Re: Upload Video File Post size error

Its not those config settings causing the problem, based on the error detaill you posted its definitely IIS configuration or if you have any request filtering module installed in IIS it could be that but it is IIS refusing it not mojoPortal code.

Have you tried changing this in Web.config:

<httpRuntime requestValidationMode="2.0" maxUrlLength="560" maxQueryStringLength="2048" />

by adding a maxRequestLength attribute as mentioned in the article about supporting large file uploads:

<httpRuntime requestValidationMode="2.0" maxUrlLength="560" maxQueryStringLength="2048" maxRequestLength="2097151" />

this is an IIS configuration element that can be set in Web.config, though there may also be related things in the metabase that affect it.

 

10/4/2012 12:14:31 PM
Gravatar
Total Posts 30

Re: Upload Video File Post size error

Joe,

If I change <httpRuntime requestValidationMode="2.0" maxUrlLength="560" maxQueryStringLength="2048">

  to in web.config file

<httpRuntime requestValidationMode="2.0" maxUrlLength="560" maxQueryStringLength="2048" maxRequestLength="2097151" />

 then I get this error and the whole website goes down.

Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".<!-- Web.Config Configuration File --><configuration> <system.web> <customErrors mode="Off"/> </system.web></configuration>

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.<!-- Web.Config Configuration File --><configuration> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> </system.web></configuration>

AS

 

10/4/2012 12:25:24 PM
Gravatar
Total Posts 18439

Re: Upload Video File Post size error

Then your IIS is configured such that it doesn't allow overriding the maxRequestLength from Web.config, its locked down in machine.config, so you'll have to undo that in Web.config and solve it a different way.

Just google for "httpruntime maxrequestlength iis6"

to find out how to solve it

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