I'm getting the following message when uploading a file to the Media Library:
The file "xxxx.jpg" is too big to be uploaded.
The maximum size of a file that can be uploaded is -205,824 bytes.
I've tried to max every setting on the web.config, but I have the same result: https://blog.horizontalintegration.com/2012/04/20/sitecore-media-library-upload-errors/
What strikes me is where is that negative value coming from?
EDIT
I've decompiled the dll where this error is being thrown: Sitecore.Shell.Applications.FlashUpload.Simple.
The error is being thrown here:
long databaseUploadSize = Settings.Upload.MaximumDatabaseUploadSize;
if ((long) num > databaseUploadSize)
{
string text = Translate.Text("The file \"{0}\" is too big to be uploaded.\n\nThe maximum size of a file that can be uploaded is {1}.", (object) filename, (object) MainUtil.FormatSize(databaseUploadSize));
this.WarningMessage = text;
SheerResponse.Alert(text);
}
Apparently there is something wrong when Sitecore tries to read the Media settings. I've tried to modify them but no luck. It seems they are being read from somewhere else or it is not being able to read them from the config file.
databaseUploadSize has a negative number.
/sitecore/admin/showconfig.aspx
for this setting value. maybe there is a patch file which changes the value?