File upload problem - non admin users

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.
11/15/2013 12:25:11 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

File upload problem - non admin users

Hi Joe, I've run into a strange issue with uploading files, and I'm not sure how to resolve it or if it's possibly a bug in mojoPortal, or even .NET. Let me give you the shortened story. Last week a user who is in a non-admin role that has been granted "Roles that can browse and upload files," reported she was unable to upload a 42 MB file (using the file browser within an HTML instance).

I confirmed that I could not upload the file either, so I read through your updated Supporting Large File Uploads document, and changed our web.config settings to support uploads up to 250 MB. It turned out that maxAllowedContentLength was the setting that needed to be changed. 

I tested and was able to upload files up to 250 MB, so I pronounced the problem fixed. But she came back to me yesterday and said it still wasn't working. Sure enough, when I log in as her and try to upload a large file, I get the dreaded "Oops" message, regardless of the browser I use. Using her account I can upload small files without a problem.

No errors are logged anywhere, so it is definitely still behaving as though the maxAllowedContentLength setting isn't set (i.e. defaulting to 30000000).

In troubleshooting, I made sure I was using the latest code line. Is there a setting I could be missing somewhere? Are you able to reproduce this yourself?

Thanks,
Jamie

11/15/2013 12:43:14 PM
Gravatar
Total Posts 18439

Re: File upload problem - non admin users

Hi Jamie,

What about the user quota and file size settings at the bottom of this article? Have you tried bumping those up, they seem a likely candidate since you say it is specific to non admins.

Hope that helps,

Joe

11/15/2013 1:37:52 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: File upload problem - non admin users

Thanks Joe, that was it. I didn't even consider quotas since we're not limiting users to their own folders. I added this to my user.config, touched web.config, and it's working as expected now.

<add key="MediaFolderMaxSizePerFileInMegaBytes" value="250" />

I know you're limited on the error trapping/reporting in the uploader, but do you think it would be possible to give a more meaningful error message, or log an error when one of the quotas is exceeded? That could be helpful to others in the future. 

Thanks!

Jamie

11/15/2013 1:54:47 PM
Gravatar
Total Posts 18439

Re: File upload problem - non admin users

Hi Jamie,

I will add logging there, I thought we already had it but apparently not.

Thanks,

Joe

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