This project has moved and is read-only. For the latest updates, please go here.

Maximum File Size

Topics: Developer Forum, User Forum
Dec 21, 2009 at 9:25 PM

What is the maximum file size that the photo can be?

I tried to upload a photo through the API that was 5Mb in size and I got a Maximum File Size error message.

Dec 22, 2009 at 11:18 AM

The limit is 10MB for normal accounts, 20MB for Pro accounts for photos, and 500MB for video I believe.

If the error is coming directly from Flickr then there is nothing I can do - however if you are getting the error from within my code then tell me the full stack trace and I will look into it.


Dec 22, 2009 at 2:17 PM

I believe it is coming from the application.  I was able to upload a 1mb photo but when I tried a 5mb then I got the error.

The full stack trace is below:

Server Error in '/Flickr' Application.

Maximum request length exceeded.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Maximum request length exceeded.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): Maximum request length exceeded.]
System.Web.HttpRequest.GetEntireRawContent() +3318370
System.Web.HttpRequest.GetMultipartContent() +56
System.Web.HttpRequest.FillInFormCollection() +222
System.Web.HttpRequest.get_Form() +65
System.Web.HttpRequest.get_HasForm() +3312222
System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +45
System.Web.UI.Page.DeterminePostBackMode() +65
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +133

Version Information: Microsoft .NET Framework Version:2.0.50727.1873; ASP.NET Version:2.0.50727.1433

Dec 22, 2009 at 2:24 PM

This has nothing to do with Flickr or my code. You need to change the settings for the maximum upload size for your web app.

Dec 23, 2009 at 7:44 PM

Thanks, that works to perfection.