我正在尝试以经典的 asp 上传图像,并使用下面的代码。
file_path = "/uploads/events/upload_img"
img_folder = Server.MapPath(file_path)
Set Upload = Server.CreateObject("Persits.Upload")
Upload.CodePage = 949
Upload.SetMaxSize (500 * 1024), True
Upload.OverwriteFiles = false
Upload.CreateDirectory img_folder, True
Upload.save
Upload.Files("img1")
这里img1
包含从用户获取的图像:
<input type="file" name="img1" />
但是它可以正确执行,但在文件夹中看不到图像 /uploads/events/upload_img
谁能告诉我这是为什么?谢谢