Large File Upload for mojo portal 2.3.9.9

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
10/11/2013 3:21:57 PM
Gravatar
Total Posts 8

Large File Upload for mojo portal 2.3.9.9

Hello,

   I'm not able to enable large file uploads in the latest version of mojo portal, getting the following error.  I changed the web.config to update the following but it still doesn't work.  Latest version of mojo portal doesn't use NeatUpload anymore and the documentation I found is outdated.  Please advice.

In the web.config, i have this

<httpRuntime requestValidationMode="2.0" maxRequestLength="1048576" executionTimeout="36000" maxUrlLength="560" maxQueryStringLength="2048" />

and this

<security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="1073741824"/>
      </requestFiltering>
    </security>

======= ERROR LOG ==========

2013-10-11 20:16:46,788 ERROR (null) - (null) - (null) - mojoPortal.Web.AppKeepAliveTask - System.Net.WebException: The remote server returned an error: (404) Not Found.
   at System.Net.HttpWebRequest.GetResponse()
   at mojoPortal.Web.AppKeepAliveTask.DoKeepAlive()
2013-10-11 20:17:08,971 INFO (null) - (null) - (null) - mojoPortal.Web.UI.BaseContentUploadHandler - Posted File Count is zero so returning 404
2013-10-11 20:18:09,405 INFO 68.189.124.139 - en-US - /SharedFiles/upload.ashx?pageid=4&mid=21 - mojoPortal.Web.UI.BaseContentUploadHandler - Posted File Count is zero so returning 404
2013-10-11 20:19:09,496 INFO (null) - (null) - (null) - mojoPortal.Web.UI.BaseContentUploadHandler - Posted File Count is zero so returning 404
2013-10-11 20:19:17,359 ERROR (null) - (null) - (null) - mojoPortal.Web.AppKeepAliveTask - System.Net.WebException: The remote server returned an error: (404) Not Found.
   at System.Net.HttpWebRequest.GetResponse()
   at mojoPortal.Web.AppKeepAliveTask.DoKeepAlive()

============================

 

mojoPortal Version 2.3.9.9 MSSQL
Operating System Microsoft Windows NT 6.1.7601 Service Pack 1
ASP.NET Info v4.0.30319 Running in Full Trust

10/11/2013 3:25:52 PM
Gravatar
Total Posts 18439

Re: Large File Upload for mojo portal 2.3.9.9

you need to make maxRequestLength on <httpRuntime larger like you did maxAllowedContentLength

10/11/2013 3:37:14 PM
Gravatar
Total Posts 8

Re: Large File Upload for mojo portal 2.3.9.9

Hi Joe,

   I had maxRequestLength in <httpRuntime as 1048576 (1GB in KB).  I updated the value to 1073741824 and it is still throwing error.  The file I'm testing is .zip file about 350mb.

 

2013-10-11 20:37:17,082 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - started WebTaskManager task
2013-10-11 20:37:26,098 INFO (null) - (null) - (null) - mojoPortal.Web.UI.BaseContentUploadHandler - Posted File Count is zero so returning 404
2013-10-11 20:38:31,260 INFO (null) - (null) - (null) - mojoPortal.Web.UI.BaseContentUploadHandler - Posted File Count is zero so returning 404
2013-10-11 20:39:31,351 INFO (null) - (null) - (null) - mojoPortal.Web.UI.BaseContentUploadHandler - Posted File Count is zero so returning 404

10/11/2013 3:53:35 PM
Gravatar
Total Posts 18439

Re: Large File Upload for mojo portal 2.3.9.9

Those log messages are saying no file was posted, those are INFO logs not ERROR.  Are you sure those specific errors correlate to actual upload attempts and not some web bot poking at the upload url?

​What feature are you trying to upload files in?

​If you use web browser tools do you see any script errors in the script console on the page where you are trying to upload? Possibly a script error on the apge is preventing it from posting the files.

Also if you upgraded then NeatUpload dlls are still in the /bin folder, make sure there is nothing in Web.config that is enabling NeatUpload. We removed all references to it from our web.config so its important to use the new Web.config and not try to keep an old one that may still reference NeatUpload. Wouldn't be a bad idea to delete the NeatUpload dlls also.

You've got some other errors about appKeepalive which I recommend that you disable, especially since the error indicates it isn't working.

10/11/2013 4:34:43 PM
Gravatar
Total Posts 8

Re: Large File Upload for mojo portal 2.3.9.9

Hi Joe,

 I'm using Shared Files feature to upload the files.  I tried with smaller 95mb file, it shows progress, then throws "Oops something went wrong uploading, you may want to contact the site administrator an error was probably logged." message on the page.  In the logs, I keep getting "Posted File Count is zero so returning 404 "

I also tried these in the appsettings but no luck.


<add key="UserFolderDiskQuotaInMegaBytes" value="3000000" />
<add key="MediaFolderDiskQuotaInMegaBytes" value="6000" />
<add key="AdminDiskQuotaInMegaBytes" value="1200000" />
<add key="UserFolderMaxSizePerFileInMegaBytes" value="10000" />
<add key="MediaFolderMaxSizePerFileInMegaBytes" value="3000" />
<add key="AdminMaxSizePerFileInMegaBytes" value="200000" />

10/11/2013 5:30:30 PM
Gravatar
Total Posts 8

Re: Large File Upload for mojo portal 2.3.9.9

Hi Joe,

   Have you or know anyone else successfully try out with large files since NeatUpload was retired?

Thanks,

 

10/12/2013 12:13:22 PM
Gravatar
Total Posts 18439

Re: Large File Upload for mojo portal 2.3.9.9

Yes, it works fine for me with large files.

What kind of hosting do you have? Are you sure there is enough free space allocated and available to the site to receive big files like that?

In some hosting environments they give you lots of space but you have to allocate the available space to the site to be able to use the space.

10/12/2013 12:20:35 PM
Gravatar
Total Posts 18439

Re: Large File Upload for mojo portal 2.3.9.9

Also make sure you are using an Integrated application pool, not Classic, otherwise the request filter allowing large files is not applicable.

10/12/2013 4:16:25 PM
Gravatar
Total Posts 18439

Re: Large File Upload for mojo portal 2.3.9.9

fyi, I just uploaded a 278MB file on our demo site using Shared Files feature. Then I made 2 more copies of the same file and uploaded all 3 of them together, it worked fine for me.

10/14/2013 1:21:52 PM
Gravatar
Total Posts 18439

Re: Large File Upload for mojo portal 2.3.9.9

fyi, I just re-wrote our article Supporting Large File Uploads with all the latest information that I know about it.

10/14/2013 1:32:22 PM
Gravatar
Total Posts 8

Re: Large File Upload for mojo portal 2.3.9.9

Hi Joe,

Thank you so much.  After adjusting applicationhost and and web.config a few times and reboots, I got it working locally.  RequestFilterModule is the one throwing the error, it doesn't appear to take the custom value although allowoverwrite is set to true. 

The issue still happening when uploading from the internet.  I'm using Amazon Web Services EC2 instance in the VPC, it could be the problem with the instance so I plan to test with some other options at later time.  I will follow your instructions and try again.

Thanks,

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