2.3.5.3 - File upload working intermittently

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.
9/22/2010 9:12:31 PM
Gravatar
Total Posts 4

2.3.5.3 - File upload working intermittently

When attempting to upload files via the image icon in the WYSIWYG editor, or uploading individual files to the Image Gallery module, I am able to upload files and the NeatUpload progress bar works as expected. However, when I attempt to use the Bulk Upload feature in the Image Gallery, or if I try to upload any file at all to the Shared Files module, the NeatUpload progress bar will display but will never do anything (no progress, number, etc). I also don't get any visible errors at all. I've tried deleting/adding the Shared Files module to different pages to jar something into working. I was able to upload 23 pictures to one instance of the Image Gallery module and the Silverlight slideshow stuff is working really well, but I had to upload each file individually using the edit icon instead of using the Bulk Upload capability.

I'm using shared hosting at DiscountASP.Net, SQL Server 2008, Asp.Net 4.0, Integrated Pipeline Mode, Windows 2008, Mojo 2.3.5.3. I have tried uncommenting the maxRequestLength httpRuntime element (but had to remove the requestValidationMode httpRuntime element to clear an IIS config error) and that didn't seem to change the behavior.

9/23/2010 1:38:21 AM
Gravatar
Total Posts 16

Re: 2.3.5.3 - File upload working intermittently

Hi

 

i had the same experience, also when using Alternate Filemanager bulk upload.

 i believe it caused by location tag in web.config

<!--
location used here per http://www.microsoft.com/technet/security/advisory/2416728.mspx
you could remove this location element if it causes an error in applications below mojoportal
-->

<location allowOverride="false">

i dont know if its safe to remove allowOverride / set it true, or there is a better way.

anyway bulkupload works if you remove allowOverride

best regards

Peter

 

 

9/23/2010 7:47:40 AM
Gravatar
Total Posts 18439

Re: 2.3.5.3 - File upload working intermittently

Hi Peter,

Thanks! That is good to know. My recommendation is live without the bulk upload for a while, hopefully it won't be long before there is a patch from Microsoft then the workaround won't be needed anymore. But for now, best to play it safe.

If you really need to upload a lot of files, I guess you could remove the location element temporarily then put it back after the files are uploaded.

Best,

Joe

9/23/2010 11:21:35 AM
Gravatar
Total Posts 4

Re: 2.3.5.3 - File upload working intermittently

So it seems that this is more an issue when using NeatUpload to upload multiple files, correct? Whether it's the Bulk Upload capability of the Image Gallery or the upload control in the Shared Files module, where both allow you to select multiple files at once, the uploads won't work. In places where you upload a single file at a time it seems to work just fine. I assume this is an issue specifically with the MultiFile capability of NeatUpload, and not with NeatUpload as a whole?

Has anybody tested to see if setting the UseFlashIfAvailable property to true has any beneficial effect?

9/23/2010 3:00:51 PM
Gravatar
Total Posts 16

Re: 2.3.5.3 - File upload working intermittently

I seem to be having the same issue though I've only noticed it when trying to upload a single file to an instance of shared files.  I've been able to upload images and files in the editor just not in shared files.

 

Currently running:

mojoPortal Version 2.3.5.3 MSSQL
Operating System Microsoft Windows NT 6.0.6002 Service Pack 2
ASP.NET Version v4.0.30319 Running in Full Trust

9/25/2010 9:15:26 AM
Gravatar
Total Posts 18439

Re: 2.3.5.3 - File upload working intermittently

I would check the logs for errors or clues and also check that you are not running out of allocated disk space. Some hosts give you lots of storage but they only allocate a little of it to the site by default so you have to allocate more of the available space. It can also depend on the file size and limits that may be configured.

http://www.mojoportal.com/supporting-large-file-uploads.aspx

Hope it helps,

Joe

9/27/2010 10:50:01 AM
Gravatar
Total Posts 16

Re: 2.3.5.3 - File upload working intermittently

After doing some additional checking and confirming that there is over 120GB of available space on my server.  I noticed I was using the wrong web.conf for my installation.  After updating to the .net 4 config file I was able to upload once again to my shared files.

My bad.

9/27/2010 10:54:51 AM
Gravatar
Total Posts 4

Re: 2.3.5.3 - File upload working intermittently

Did you change the allowOverride value to "true" in the location element, or remove the location element completely? I'm using the .net 4.0 build as well (and the config for that build), so if you didn't do any of the above and Shared Files is working for you, I need to determine why I'm the odd man out...

9/27/2010 11:21:44 AM
Gravatar
Total Posts 16

Re: 2.3.5.3 - File upload working intermittently

I didn't make any changes to the allowoverride....Are you sure you're using the web.net4.config as your web.conf file?

9/27/2010 11:30:13 AM
Gravatar
Total Posts 4

Re: 2.3.5.3 - File upload working intermittently

I didn't see a web.net4.config file in "wwwroot" in the download file ("mojoportal-2-3-5-3-mssql-net40-deploymentfiles.zip"). I took the web.config file that was there and edited it to include the correct connection string information and turned on the ability to enforce domain names.

Am I missing a step in the install/upgrade process?

9/27/2010 1:02:23 PM
Gravatar
Total Posts 16

Re: 2.3.5.3 - File upload working intermittently

Ok, after looking thru my web.config and comparing it to the deployment version I had some inconsistencies.  I'm using the web.config file from the zip file for .Net4.  But to get the uploads to work here is what I had to change.

  <location allowOverride="true">

  </location>

  <!--
example protecting a folder by roles
for static files also requires the <modules runAllManagedModulesForAllRequests="true"> in system.webserver section
<location path ="Data/Sites/1/media">
<system.web >
<authorization>
<allow roles="Authenticated Users" />
<deny users =""/>
</authorization>
</system.web>
</location> 

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