Disk space availability

Discussion in 'ASP.NET 2.0' started by npoyser, Jul 30, 2007.

  1. Hi,

    Is there any way to check that enough disk space is available to my account before writing a file to disk in a shared hosting environment? Users will be uploading files to a folder on my site and I would like to know if there is enough space to accommodate the file before uploading it.

    Thx,
    -Noel
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    No. I don't think you can do that because the user would not have enough right to query the disk quota on the system.

    I would just allow them to upload and trap the error if the quota is exceeded.




    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page