Setting maxRequestLength for upload file sizes

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Setting maxRequestLength for upload file sizes

    Is it possible to set httpRuntime.maxRequestLength to
    limit the suze of an uploaded file dynamically or is it
    only possible statically in Web.config file (or
    system.config)

    ie I would like to give different users a different
    maximum limit.

    Thank you

    David

    David Stephen Guest

  2. Similar Questions and Discussions

    1. How to upload a file to 2 FTP sites without an upload component for company
      Hi All I can't get round this because it's a local government thing, but I've done a CMS for a school (in ASP classic) that allows them to upload...
    2. cffile upload - error due to security setting
      Attempting to upload any file using cffile upload to a hosted website generates the CFCATCH errors: Messageaccess denied (java.io.FilePermission...
    3. Upload Friendly (Multiple File Upload Applet)
      Title : Upload Friendly (Multiple File Upload Applet) Description : UploadFriendly is an easy to use Java Applet that will allow multiple file...
    4. File Viewer / Bloated file sizes / What is the best file format?
      I would like to find a viewer capable of looking at the main Adobe formats as well as the standard formats such as JPG and WMF ... but yet the only...
    5. File sizes.
      Hi, I have been watching the thread about the file::copy. I ran into an issue in the Linux environment that brings a serious question, MAX file...
  3. #2

    Default Re: Setting maxRequestLength for upload file sizes

    Hi,

    As far as I know you cant do it dynamicly. however you can set the max
    val in machine.config and check the upload file length do decide if to
    process it or not.


    Natty Gur, CTO
    Dao2Com Ltd.
    28th Baruch Hirsch st. Bnei-Brak
    Israel , 51114

    Phone Numbers:
    Office: +972-(0)3-5786668
    Fax: +972-(0)3-5703475
    Mobile: +972-(0)58-888377

    Know the overall picture


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Natty Gur Guest

  4. #3

    Default Re: Setting maxRequestLength for upload file sizes

    Is there a way to trap the ContentLength before the entire file is
    uploaded.

    ie If one user can have a 20MB limit and one only has 100k limit I don't
    want the 100k limit uploading large files only to have a message
    eventually returned saying too big.

    Also reduce quantity of internet transfer.

    Thanks



    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    David Stephen Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139