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

  • SEARCH
  • Home
  • 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 6180093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:47:13+00:00 2026-05-24T00:47:13+00:00

In order to change the maximum upload size in IIS, the user can adjust

  • 0

In order to change the maximum upload size in IIS, the user can adjust in the IIS metabase the AspMaxRequestEntityAllowed value as explained in different sites.

My question is:

Is it possible to read the current maximum allowed size for uploads from classic Asp code?

Explanation:
I’m adjusting some upload code, and one feature now is to notify the client side of the maximum upload size so that files sent with Flash or FormData can be validated and not even try to send them if they are too large and the upload would fail. So I can either hope that when the users configure it, correctly write in the configuration file the maximum allowed by their server; but it would be much better if I can get the real value from IIS.

  • 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-05-24T00:47:14+00:00Added an answer on May 24, 2026 at 12:47 am

    You can use WMI to do that. For instance, using VBScript:

    Dim provider, setting, maxUploadSize
    Set provider = GetObject("winmgmts:/root/MicrosoftIISv2")
    Set setting = provider.Get("IIsWebVirtualDirSetting='W3SVC/1/ROOT'")
    maxUploadSize = setting.AspMaxRequestEntityAllowed
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to change the maximum file upload size in my website, for this
How can the height of a B+ tree change in different insertion orders? For
I am trying to make a JQuery script in order to change the size
Is it possible to change the display of inlines in order to change it
I am using this JavaScript function in order to change image on click, but
I am using the below JS code in order to change the class when
I've added some php flags in my htaccess in order to change some php
My Java applications uses Hibernate with a SessionFactory-scoped interceptor in order to change data
How to change column order in a table using SQL query in SQL Server
Is there a way to change the order of the controls inside a StackPanel

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.