SA FileUp ķ
Set oFileUp = Server.CreateObject("SoftArtisans.FileUp")
ȡ(xing)ķ
For Each strFormElement In oFileUp.Form
oFileUp.Form(strFormElement)Ϳÿ(g)ļҲ@
ע⣺ǶxtoFileUp.FormEx(strFormElement)
@Ӂv
For Each strSubItem In oFileUp.FormEx(strFormElement)
Response.Write( strSubItem & "<BR>")
Next
Next
ContentTypeԣ
oFileUp.Form(strFormElement).ContentType
ԵõļMIME
IsEmpty
oFileUp.Form(strFormElement).IsEmpty
֪ÑDzָһ(g)oЧļ
MaxBytes
oFileUp.Form(strFormElement).MaxBytes=30000
ָļλByte^ôֻ惦(ch)MaxBytesָĴСᗉ
ServerName
oFileUp.Form(strFormElement).ServerName
Եõļ浽(w)·
ShortFilename
oFileUp.Form(strFormElement).ShortFilename
Եõ͑˵ļעֻļ@]?yn)?bo)e(cu)Ǻǡ
UserFilename
oFileUp.Form(strFormElement).UserFileName
Եõ͑ļ·�ݔһ½oÑ
TotalBytes
oFileUp.Form(strFormElement).TotalBytes
ԵõļĴСλByte
SaveInVirtual(·)
oFileUp.Form(strFormElement).SaveInVirtual "upfile/"
oFileUp.Form(strFormElement).SaveInVirtual "upfile/aa.abc"
ָֻ·tԭļtָָļ
(w)TԽֹз@(g)һ(hu)
SaveAs (ļ)
oFileUp.Form(strFormElement).SaveAs "C:\aa\a.tmp"
]ָ·ָֻļôPathָ·
Pathһ(hu)B
Save
oFileUp.Path="D:\wwwroot\abc\upfile\"
ע挍(sh)·Server.MapPathD(zhun)Q̓M·
oFileUp.Form(strFormElement).Save
ָļD
ע⣺PathԱᵽκα(xing)֮ǰh
Set oFileUp = Server.CreateObject("SoftArtisans.FileUp")
ĺ档ǰõԒ
Delete (ļx)
oFileUp.Form(strFormElement).Delete
ķ(w)τhļָļth(dng)ǰļ
ָԒļ·
Flush
oFileUp.Flush
(dng)㲻뱣κΖ|ĕr(sh)ŗȫݔ