Results 1 to 4 of 4

Thread: Limiting File upload size

  1. #1
    Join Date
    Sep 2006
    Posts
    210
    Thanks
    1
    Thanked 6 Times in 6 Posts

    Default Limiting File upload size

    Hi All

    Here is the problem as I see it, please correct me if I am wrong,

    By default in the machine.config the file upload size is about 4Mb and when u try and upload files larger that that Asp.Net will ethier just time out or throw an exception.

    Okay I can live with the file size of 4Mb, as I am trying to allow my users to upload images so 4Mb limit is not a problem.

    So I have a routine that resizes the image and reduces the file size of any image uploaded, so now for the problem,


    My resize routine is server side code, and before it resizes the image Asp.Net trys to upload all of the file, so I run in the the file size and timout problem.

    So can anyone point me to a solution, either client side, or server side, or an open source control, or any work around

    Thanks

  2. #2
    Join Date
    Feb 2004
    Posts
    4,877
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    Our upload limit for PHP/ASP/ASP.NET is 20MB.
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  3. #3
    Join Date
    Sep 2006
    Posts
    210
    Thanks
    1
    Thanked 6 Times in 6 Posts

    Default

    Hi Warren thanks for the info

    Do u have the executionTimeout set higher than default in the machine.config

  4. #4
    Join Date
    Feb 2004
    Posts
    4,877
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    Quote Originally Posted by spire128 View Post
    Do u have the executionTimeout set higher than default in the machine.config
    If thats the setting that controls upload size....

    (...I don't think it is, maxRequestLength seems more appropriate)
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. reduce MSSQL ldf log file size
    By Rappie in forum MSSQL
    Replies: 2
    Last Post: 14th June 2007, 08:30 PM
  2. File Upload Feature
    By garazy in forum General Technical Support
    Replies: 0
    Last Post: 12th December 2006, 10:08 AM
  3. PHP: Calculating a Directory File Size
    By nick in forum Code Sharing
    Replies: 17
    Last Post: 29th January 2006, 10:32 AM

Bookmarks

Posting Permissions

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