資源簡(jiǎn)介
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Web;
using?System.Web.UI;
using?System.Web.UI.WebControls;
using?System.IO;
namespace?HttpUploader3.asp.net
{
public?partial?class?upload_utf8?:?System.Web.UI.Page
{
protected?void?Page_Load(object?sender?EventArgs?e)
{
if?(Request.Files.Count?>?0)
{
string?folder?=?Server.MapPath(“/upload“);
//自動(dòng)創(chuàng)建上傳文件夾
if?(!Directory.Exists(folder))
{
Directory.CreateDirectory(folder);
}
int?fileSize?=?int.Parse(Request.Form[“FileSize“]);//文件總大小,以字節(jié)為單位
int?rangePos?=?int.Parse(Request.Form[“RangePos“]);
HttpPostedFile?file?=?Request.Files.Get(0);
//獲取純文件名稱:qq.exe
string?fileName?=?HttpContext.Current.Server.UrlDecode(file.FileName);
string?ext?=?Path.GetE
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????3799??2012-02-20?15:36??web\asp\BinaryReader.asp
?????文件???????2717??2012-02-20?16:55??web\asp\BinaryWriter.asp
?????文件????????855??2012-02-20?17:50??web\asp\Fileba
?????文件????????371??2012-02-20?15:40??web\asp\test.asp
?????文件???????2406??2012-02-20?18:17??web\asp\upload.asp
?????文件??????11698??2012-02-20?17:41??web\asp\UpLoadClass.asp
?????文件????????129??2012-02-17?20:15??web\asp.net\upload-utf8.aspx
?????文件???????1907??2012-02-17?20:15??web\asp.net\upload-utf8.aspx.cs
?????文件????????523??2012-02-17?19:21??web\asp.net\upload-utf8.aspx.designer.cs
?????文件????????135??2012-02-17?20:14??web\asp.net\upload.aspx
?????文件???????1876??2012-02-17?20:13??web\asp.net\upload.aspx.cs
?????文件????????510??2012-02-17?19:21??web\asp.net\upload.aspx.designer.cs
?????文件???????2809??2012-02-20?17:20??web\HttpUploader\HttpUploader.css
?????文件??????20391??2012-02-20?17:24??web\HttpUploader\HttpUploader.js
?????文件????????915??2012-02-17?19:20??web\HttpUploader.sln
????..A..H.?????17408??2012-02-20?19:58??web\HttpUploader.suo
?????文件??????13312??2011-11-07?11:46??web\HttpUploader2.suo
?????文件???????4705??2012-02-20?18:10??web\HttpUploader3.csproj
?????文件???????1380??2012-02-20?18:10??web\HttpUploader3.csproj.user
?????文件??????13824??2011-11-09?20:37??web\HttpUploaderWeb.suo
?????文件???????1594??2012-02-20?18:12??web\index.html
?????文件????????526??2012-02-20?18:17??web\jsp\upload3\.classpath
?????文件????????294??2012-02-20?18:17??web\jsp\upload3\.myme
?????文件???????1413??2012-02-20?18:17??web\jsp\upload3\.project
?????文件????????500??2012-02-20?18:17??web\jsp\upload3\.settings\.jsdtscope
?????文件????????330??2012-02-20?18:17??web\jsp\upload3\.settings\org.eclipse.jdt.core.prefs
?????文件?????????49??2012-02-20?18:17??web\jsp\upload3\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件??????????6??2012-02-20?18:17??web\jsp\upload3\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件???????6688??2012-02-20?18:17??web\jsp\upload3\src\net\wl\servlet\uploadServlet.java
?????文件???????2811??2012-02-20?18:17??web\jsp\upload3\WebRoot\HttpUploader\HttpUploader.css
............此處省略38個(gè)文件信息
- 上一篇:WPF圖片合成水印代碼
- 下一篇:電腦報(bào)價(jià)管理系統(tǒng)
評(píng)論
共有 條評(píng)論