Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9037953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T09:22:05+00:00 2026-06-16T09:22:05+00:00

I am working on a project i have used uploadify control for file uploading,i

  • 0

I am working on a project i have used uploadify control for file uploading,i have to set file size limit to 5MB, i’ve seen its documentation Here

I tried setting 5MB but still when i am selecting file around 3MB it is showing file size error
I also tried setting value without any unit (ie 5120) but in that case its also showing file size error when i select even of file 3MB size

Here’s my code

var sizelimit = '5MB'; //or '5120'
$('#file_upload').uploadify({
        'uploader': ResourceUplodify.Uploader,
        'script': ResourceUplodify.ScriptFile,
        'cancelImg': ResourceUplodify.CancelImg,
        'folder': ResourceUplodify.Folder,
        'fileDesc': 'Document Files',
        'buttonImg': '../../Content/images/Attach-File.jpg',
        'fileExt': '*.pdf;*.doc;*.ppt;*.odt;*.rtf;*.txt',
        // 'sizeLimit': 10485760,
        'sizeLimit': sizelimit,
        'height': 29,
        'width': 90,
        'buttonText': 'Attach File',
        'multi': false,
        'auto': false,
        'onSelect': function (a, b, c, d, e) {          
        },
        'onComplete': function (a, b, c, d, e) {
            //            if (d != '1') {          
        },
        'onError': function () {

        }
    });

I also want to work with session with uploadify,they have shown PHP code for working with session but i dont know how to work with session in C#(using uploadify offcourse)

Working with Session in Uploadify

How can i access value of formdata in MVC3(C# code)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T09:22:07+00:00Added an answer on June 16, 2026 at 9:22 am

    The default request size limit in ASP.NET is 4MB.

    Make sure you have increased the default value of the request size in your web.config using the <httpRuntime> element if you want to allow files larger than 4MB to be uploaded:

    <system.web>
        <!-- 5MD (value is in KB here) -->
        <httpRuntime maxRequestLength="5120" />
        ...
    </system.web>
    

    and also if you are hosting on IIS7 you need to set the maxAllowedContentLength to the same value (in bytes):

    <system.webServer>
        <security>
            <requestFiltering>
                <!-- 5MB (value is in bytes here) -->
                <requestLimits maxAllowedContentLength="5242880" />
            </requestFiltering>
        </security>
    </system.webServer>
    

    As far as the sessions are concerned, you may find the following post useful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have used this tooltip in my project its working great but the problem
I have used push notification for my project & was working fine with HTTP
I'm working on a security project in Javascript (something I honestly have not used),
I'm working on a project that needs Jasper reporting, I have used the code
I am working on a project, where I have used the default routing routes.MapRoute(
I am working on one project in which i have used AudioUnitRender it runs
Hello every body I have used following code in my jpa project for working
I have been working in a C++ project that uses doxygen to generate documentation
I have used hg clone to get a working copy of a project on
I working on project and have problem with threading and update of UI. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.