zoukankan      html  css  js  c++  java
  • 通过HtmlInputFile控件上传文件的类(转)

    作者:小山
    using System;
    using System.Web.UI.HtmlControls;
    using System.IO;

    namespace Document.Bll
    {
        
    public class HtmlInputFileControl
        
    {
            HtmlInputFileControl
    HtmlInputFileControl

            IsAllowedExtension是否允许该扩展名上传
    IsAllowedExtension是否允许该扩展名上传

            IsAllowedLength判断上传文件大小是否超过最大值
    IsAllowedLength判断上传文件大小是否超过最大值

            SaveFile上传文件并返回文件名
    SaveFile上传文件并返回文件名

            CoverFile重新上传文件,删除原有文件
    CoverFile重新上传文件,删除原有文件

            DeleteFile删除指定文件
    DeleteFile删除指定文件

            GetUniqueString获取一个不重复的文件名
    GetUniqueString获取一个不重复的文件名
        }

    }
  • 相关阅读:
    Atcoder Regular Contest 123 题解
    Atcoder Grand Contest 015 F Kenus the Ancient Greek(找性质+乱搞)
    Solution 「CF 575G」Run for beer
    Solution 「CF 510E」Fox And Dinner
    Solution 「洛谷 P4389」付公主的背包
    Solution 「CF 555E」Case of Computer Network
    Solution 「CF 802C」Heidi and Library (hard)
    Solution 「JOISC 2020」「UOJ #509」迷路的猫
    Div弹出框
    JS对话框
  • 原文地址:https://www.cnblogs.com/ghx88/p/361317.html
Copyright © 2011-2022 走看看