virtualgeorge
Guppy
I moved a site here that has a script to upload photos to a real estate site.
But I need to change something to correct the following error:
Its something to do with this but I don't know how to correct: http://www.aspupload.com/object_upload.html#SaveVirtual
If I paste part of the code to my script could someone help me out if it is a simple fix?
Thanks! Code below:
line 25 would be: File.SaveAs Path & "\" & Answer
But I need to change something to correct the following error:
Code:
D:\hshome\alcadmin\arizonarenttoown.com\admin\PIC_Upload.asp
Persits.Upload.1 error '800a0028'
This feature has been disabled by system administrator. Use File.SaveAsVirtual instead.
/admin/PIC_Upload.asp, line 25
Its something to do with this but I don't know how to correct: http://www.aspupload.com/object_upload.html#SaveVirtual
If I paste part of the code to my script could someone help me out if it is a simple fix?
Thanks! Code below:
line 25 would be: File.SaveAs Path & "\" & Answer
Code:
Set Upload = Server.CreateObject("Persits.Upload")
'On Error Resume Next
' we use memory uploads, so we must limit file size
Upload.SetMaxSize 1048576, True ' Limit files to 1MB
' Save to memory. Path parameter is omitted
Upload.Save
txtID = Upload.Form("homeID")
txtPicture = Upload.Form("txtPicture")
txtPicNum = Upload.Form("txtPictuspamSpamm")
txtProp = Upload.Form("txtProperty")
Response.write(Server.MapPath("PIC_Upload.asp"))
Path = "D:\hshome\alcadmin\arizonarenttoown.com\admin\properties"
Upload.OverwriteFiles = True
' Save files to it. Our form has only one file item
' but this code is generic.
For Each File in Upload.Files
Answer = txtPicNum & "_" & txtID & RIGHT(File.FileName, 4)
File.SaveAs Path & "\" & Answer
' Database Open