Persits.Upload.1 error Access is denied.

Discussion in 'Classic ASP' started by jayham, Mar 20, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I get this error


    > Persits.Upload.1 error '800a0022'


    > Access is denied.





    > /ecapital/borrower/resume.asp, line 34


    >


    > strPath = "\eCapital\borrower\uploadedFiles"


    > this is line 34


    > Upload.CreateDirectory strpath&"\Resumes", True


    >


    > the file uploads, but not to the right folder, it uploads to strpath, also it supposed to rename the file but it does not happen.


    >


    > Here is the code


    > strPath = "\eCapital\borrower\uploadedFiles"


    > Count = Upload.SaveVirtual(strPath)


    >


    > ' Two files must be selected


    > If Count <> 1 Then


    >


    > ' delete uploaded file, if any


    > For Each File in Upload.Files


    > File.Delete


    > Next


    > Response.End


    > End If


    > ' Create two folders, ignore "already exists" error


    > Upload.CreateDirectory strpath&amp;"\Resumes", True


    > ' Obtain File objects


    > Set File1 = Upload.Files("fileResume")


    >


    > ' Build name from session ID


    > Name = newid&amp;"_"&amp;strFirst&amp;"_"&amp;strLast&amp;"_resume"


    > File1.Copy strpath&amp;"\Resumes\" &amp; Name &amp; File1.Ext


    > resPath=strpath&amp;"\Resumes\" &amp; Name &amp; File1.Ext


    > ' Delete from temp folder


    > File1.Delete


    > strResumePath=resPath


    Can Anyone help
     
  2. Thats strange it works great locally, is it possible that some of the functions are turned off by discountasp.net ?
     
  3. Bruce

    Bruce DiscountASP.NET Staff

    Try use file system object (FSO) to create folder. I think the persist object has problem w/ folder creation.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page