在ASP中如何实现上传视频文件的功能呢?

急用!希望大家能帮帮我.谢谢了
2024-11-28 20:56:46
推荐回答(1个)
回答1:

文件一upload_5xsoft.inc

文件二 upload.asp


照片上传



文件三 upfile.asp


<%
Set upload = New upload_5xsoft
f= Server.MapPath("pic")&"/"
Set file = upload.file("file1")
n = right(file.FileName,4)
s=replace(now(),":","")
s=replace(now(),"-","")
s=replace(now()," ","")
file.SaveAs f&s&n
session("image")=s&n
Response.Write "上传成功"
%>