File upload errors

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/19/2013 10:02:38 AM
Gravatar
Total Posts 29

File upload errors

  • Windows 2008 Server R2 SP1
  • ​Users: Windows XP, Windows 7, Mac OSX
  • PostgrSql
  • mojoPortal 2.3.9.9 pgsql
  • .NET 4.0.

I have two users who work with the web site content.

  • One is in the "Content Administrators" role. She is a Mac user, using Safari or Firefox.
  • The other is in a role that I created called "Newsletter Administrators," which has the same rights as Content Administrators, but is limited to Newsletters. He uses Windows 7 and IE 10 or Firefox.
  • Both users often (but not always), have trouble uploading files, most often images in .jpg or .png format.
  • I have temporarily added these users to the "Administrators" role, and it has reduced their upload problems, but has not solved it.
  • Whenever they have this problem, they can send the files to me. Logged in with the Admin account, I have zero problems with uploads.

Here is an error message from the System Log for the latest--

2013-11-19 09:13:14,655 ERROR 209.74.231.50 - en-US - /ImageGallery/upload.ashx?pageid=94&mid=117&ItemID=-1 - mojoPortal.Web.Global -  Referrer(http://www.cvacoop.com/ImageGallery/EditImage.aspx?mid=117&pageid=94) useragent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36 
Npgsql.NpgsqlException:
duplicate key value violates unique constraint "pk_galleryimages"
Severity: ERROR
Code: 23505
   at Npgsql.NpgsqlState.<ProcessBackendResponses_Ver_3>d__a.MoveNext()
   at Npgsql.ForwardsOnlyDataReader.GetNextResponseObject()
   at Npgsql.ForwardsOnlyDataReader.GetNextRow(Boolean clearPending)
   at Npgsql.ForwardsOnlyDataReader.Read()
   at Npgsql.NpgsqlCommand.ExecuteScalar()
   at mojoPortal.Data.NpgsqlHelper.ExecuteScalar(String connectionString, CommandType commandType, String commandText, NpgsqlParameter[] commandParameters)
   at mojoPortal.Data.DBGallery.AddGalleryImage(Guid itemGuid, Guid moduleGuid, Int32 moduleId, Int32 displayOrder, String caption, String description, String metaDataXml, String imageFile, String webImageFile, String thumbnailFile, DateTime uploadDate, String uploadUser, Guid userGuid)
   at mojoPortal.Business.GalleryImage.Create()
   at mojoPortal.Features.UI.ImageGallery.upload.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 

11/19/2013 11:05:01 AM
Gravatar
Total Posts 18439

Re: File upload errors

Hi,

The upload problems are when using the Image Gallery or other features?

The posted error looks like a database problem rather than an upload problem, though it may be happening at upload time.

The Image Gallery does not enforce any quotas so I would expect no difference for one user vs another but when uploading from within the editor ie using the image toolbar to browse server and upload there are file system quotas enforced that seem a likely factor if admins get different results. For that kind of problem see the config settings at the bottom of this article, copy those from web.config and paste them in user.config to customize them.

For the database error, can you reproduce it? if so please tell me steps and I'll look into it.

See also supporting large file uploads.

Hope that helps,

Joe

11/19/2013 1:56:09 PM
Gravatar
Total Posts 29

Re: File upload errors

The Content Administrator typically is uploading images, all under 200 KB in size. The Newsletter Admin uploads .PDF files that are under 500 KB in size.

Those aren't even close to "large file" limits set on the system.

11/19/2013 2:06:27 PM
Gravatar
Total Posts 18439

Re: File upload errors

there are other quotas besides file size such as total storage and total number of files. please experiment with the settings I mentioned, boost them larger and see if it resolves the problem.

11/19/2013 3:04:40 PM
Gravatar
Total Posts 29

Re: File upload errors

I understand what you are saying about limits. However, our site is not even close to the defaults.

User folder -- not being used.
Site's entire data folder-- 290 MB -- default: 12 GB

media folder total size -- 167 MB -- default 6GB
​media Max File Size: largest: 2.9 MB -- default: 30 MB
Max number of files: 134 in total data folder -- default: 10,000 per folder
Max number of folders in media:  107 actual -- default: 500

I will set the values in the user.config, because that's a good idea. But we're not even close.

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