AspUpload中文手册及语法 | |
发起人:孙帅 回复数:1 浏览数:29818 最后更新:2011/10/30 23:22:39 by 孙帅 |
选择查看 | 搜索更多相关主题 帖子排序: |
孙帅 发表于 2011/10/30 17:51:31
|
||
AspUpload中文手册及语法 AspUpload2.0版使用手册使用ASP实现文件上载到WEB服务器 将文件存在数据库中 从数据库中读取文件内容并发送给客户端浏览器 |
孙帅 发表于 2011/10/30 23:22:39
|
||
AspUpload语法一、UploadManager 属性 DetectMacBinary As Boolean (Read/Write) Directory (Path As String, Optional SortBy, Optional Ascending) As Object (Read-Only) Expires As Date (Read-Only) Files As Object (Read-Only) Form As Object (Read-Only) IgnoreNoPost As Boolean (Read/Write) OverwriteFiles As Boolean (Read/Write) PreserveFileTime As Boolean (Read/Write) ProgressID As String (Read/Write) RegKey As String (Read/Write) TotalBytes As Long (Read-Only) TotalSeconds As Long (Read-Only) Version As String (Read-Only) 二、UploadManager Methods Sub CreateDirectory (Path As String, Optional IgnoreAlreadyExists) Sub CreateFile (Path As String) Sub DecryptAndSendBinary (Path As String, IncludeContentType As Boolean, ContentType As String, Key As CryptoKey, RemoveExt As Boolean, Optional Attachment, Optional FileName). Sub DeleteFile (Path As String) Function FileExists (Path As String) As Boolean Sub FromDatabase (Connect As String, SQL As String, Path As String) Sub FromRecordset (RecorsetValue As Variant, Path As String) 使用 ADO Recordset 对象从数据库的表中输出BLOB字段。 Sub LogonUser (Domain As String, Username As String, Password As String, Optional Flags) 扮演指定的用户帐号。 Sub MoveFile (FromPath As String, ToPath As String) 移动文件。如果目标路径存在,这个方法将会报错。 Function OpenFile (Path As String) As Object 建立一个UploadedFile 实例,它指向指定的文件。 Sub RegisterServer (Path As String, Optional Register) 模仿 REGSVR32 (/u) 的动作。 注册或者卸载指定的ActiveX DLL。 Sub RemoveDirectory (Path As String) Sub RevertToSelf Function Save (Optional Path, Optional Key, Optional Ext) As Long Function SaveEncrypted (Path As String, Key As Object, Ext As String) As Long Function SaveToMemory As Long Function SaveVirtual (Optional VirtualPath, Optional Key, Optional Ext) As Long Function SaveVirtualEncrypted (Optional VirtualPath, Optional Key, Optional Ext) As Long Sub SendBinary (Path As String, Optional IncludeContentType, Optional ContentType, Optional Attachment, Optional FileName) Sub SetMaxSize (MaxSize As Long, Optional Reject) Sub ToDatabaseEx (Path As String, Connect As String, SQL As String, Optional MSAccessHeaders) 三、UploadedFile 属性 Binary As Variant (Read-Only) ContentType As String (Read-Only) CreationTime As Date (Read-Only) Ext As String (Read-Only) FileName As String (Read-Only) Folder As String (Read-Only) ImageHeight As Long (Read-Only) ImageType As String (Read-Only) ImageWidth As Long (Read-Only) LastAccessTime As Date (Read-Only) LastWriteTime As Date (Read-Only) MD5Hash As String (Read-Only) Name As String (Read-Only) OriginalFileName As String (Read-Only) OriginalFolder As String (Read-Only) OriginalPath As String (Read-Only) OriginalSize As Long (Read-Only) Path As Long (Read-Only) Size As Long (Read-Only) 四、UploadedFile Methods Sub Copy (Path As String, Optional Overwrite) Sub CopyVirtual (VirtualPath As String, Optional Overwrite) Sub Delete Sub DenyAccess (Account As String, Flags As Long) Sub ExtractFileName Sub ExtractFolderName Sub Move (Path As String) Sub MoveVirtual (VirtualPath As String) Sub RevokeAllowance (Account As String) Sub RevokeDenial (Account As String) Sub SaveAs (Path As String) Sub SaveAsVirtual (VirtualPath As String) Sub SetOwner (Account As String, Flags As Long) Sub ToDatabase (Connect As String, SQL As String, Optional MSAccessHeaders) |
用户在线信息 |
当前查看此主题的会员: 2 人。其中注册用户 0 人,访客 2 人。 |