Azure Function File Upload Limit Stuck at 32 MB

hawthorne91 230 Reputation points
2024-12-20T22:04:04.41+00:00

Hello,

I’m running into an issue with my Azure Functions where file uploads are limited to 32 MB, even though I’m expecting a 100 MB limit for file uploads and downloads. I've already tried adjusting the Functions_Request_Body_Size_Limit in my app settings, but it hasn't resolved the issue.

This function is part of a larger system within an API, and I’m wondering if there might be another configuration or limit causing this problem. If more details about my overall architecture are needed to troubleshoot further, please let me know.

Thanks in advance for any insights or suggestions!

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,250 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,292 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. hossein jalilian 9,310 Reputation points
    2024-12-21T00:54:16.48+00:00

    Hello hawthorne91,

    Thanks for posting your question in the Microsoft Q&A forum.

    It is likely due to multiple layers of configuration that need to be addressed. Here are some steps to troubleshoot and potentially resolve the issue:

    1. Verify the FUNCTIONS_REQUEST_BODY_SIZE_LIMIT setting:
      • Ensure it's set to the desired value (e.g., 104857600 for 100 MB) in your function app settings , double-check that this setting is applied correctly in both local and Azure environments.
    2. Check for Web.config limitations:
      • Although not always visible, there might be a Web.config file limiting request size, if you can access it, look for the httpRuntime element and adjust the maxRequestLength attribute.
    3. Review Azure Storage account settings:
      • Ensure your storage account is configured to handle larger file sizes, check if there are any specific limitations set on the blob container you're using.
    4. Examine host.json file:
      • Look for any settings that might be limiting request size.
    5. Check for middleware or custom code:
      • Review any custom middleware or code in your function that might be imposing size limits.
    6. Verify Azure App Service plan:
      • Ensure your function is running on a plan that supports larger file sizes.

    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.