Click here to Skip to main content
15,896,118 members
Articles / Web Development / ASP.NET

ASP.NET file post direct to disk with upload file progress support

Rate me:
Please Sign up or sign in to vote.
4.77/5 (15 votes)
16 Jul 2006CPOL5 min read 218.3K   5.6K   96  
This module gives developers a way to intercept multi-part form posts in ASP.NET and store the data directly to disk without going direct to memory. It also provides a way to extract file progress from an external window. Written in C# for backend, and JavaScript / Atlas for the progress bar.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <configSections>
        <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
            <section name="TravisWhidden.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
        </sectionGroup>
    </configSections>
    <applicationSettings>
        <TravisWhidden.Properties.Settings>
            <setting name="BaseFileUpload" serializeAs="String">
                <value>C:\upload\</value>
            </setting>
            <setting name="FileTimeToLive" serializeAs="String">
                <value>3600</value>
            </setting>
            <setting name="Pages" serializeAs="String">
                <value>UploadModuleHTTP/Default.aspx</value>
            </setting>
        </TravisWhidden.Properties.Settings>
    </applicationSettings>
</configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions