Print Page | Close Window

ASPUpload

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=5450
Printed Date: 31 March 2026 at 4:47am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: ASPUpload
Posted By: Gullanian
Subject: ASPUpload
Date Posted: 02 September 2003 at 9:39am

Hey I got gearhost hosting, and i try an upload form:

<%

Set Upload = Server.CreateObject("Persits.Upload")

' Do not throw the "Wrong ContentType error first time out

Upload.IgnoreNoPost = True

Count = Upload.SaveVirtual("\uploads")

If Count > 0 Then

Response.Write Count & " file(s) uploaded."

End If

%>

<HTML>

<BODY BGCOLOR="#FFFFFF">

<h3>Simple Upload</h3>

<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="test.asp">

<INPUT TYPE="FILE" SIZE="40" NAME="FILE1"><BR>

<INPUT TYPE="FILE" SIZE="40" NAME="FILE2"><BR>

<INPUT TYPE="FILE" SIZE="40" NAME="FILE3"><BR>

<INPUT TYPE=SUBMIT VALUE="Upload!">

</FORM>

</BODY>

</HTML>

where uploads is the next folder up, in icontrol i set all the directory permissions to write and execute, anyone know why i get the error:

Persits.Upload.1 error '800a0005'

The system cannot find the file specified.

/test/test.asp, line 5




Replies:
Posted By: MorningZ
Date Posted: 02 September 2003 at 11:46am

Count = Upload.SaveVirtual("\uploads")

is not a proper Virtual subdirectory



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: Diep-Vriezer
Date Posted: 03 September 2003 at 2:44pm
No, use Server.Mappath("/Uploads/") instead

-------------
Gone..



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net