I had a backend admin interface working perfectly using ASPUpload using the "Upload.Save" and File.SaveAs "d:\hosting\expatshow\uploads\gallery\" & NewName & File.ext until a few weeks ago. Then GoDaddy changed something on their server that no longer allows Upload.Save method. This generated the error below:
Persits.Upload.1 error '800a0028'
This feature has been disabled by system administrator. Use File.SaveVirtual instead.
I've been trying to do this, to no avail. Here's my current code (forgive the commented out lines - I've tried hundreds of variations):
Set Upload = Server.CreateObject("Persits.Upload.1")
Set UploadProgress = Server.CreateObject("Persits.Upload")
Upload.ProgressID = Request.QueryString("PID")
' Limit file size to 50000 bytes, throw an exception if file is larger
Upload.SetMaxSize 20971520, True
' Intercept all exceptions to display user-friendly error
On Error Resume Next
' Will not overwrite files
Upload.OverwriteFiles = False
' Perform upload
' Use session ID as the new file name
'NewName = Session.SessionID
For Each File in Upload.Files
File.SaveAsVirtual "../uploads/gallery/" & File.FileName
The Progress Bar indicates that it uploads the file to the memory. It just won't write the file to my directory in wwwroot/uploads/gallery. Any help would be greatly appreciated. I believe permissions are correct, as it typically generates an error about not having permission to that directory.