Aspupload Unspecified Error
Contents |
most
Persits Upload Dll Download
cases it means that your upload script uses Request.Form or Request.QueryString
Classic Asp Upload File To Server
prior to calling Upload.Save . As a result, the BinaryRead method of the Request object fails. You must never use Request.Form in your persits upload 1 dll download upload script because the ENCTYPE="multipart/form-data" attribute of your form makes this collection unusable. Use Upload.Form instead. Remeber, however, that the Upload.Form collection is populated by a call to Upload.Save, therefore you can only use Upload.Form after a successful call to Upload.Save. Created: 2/25/2002 11:42:22 AM Last Modified: 2/25/2002 11:42:22 AM Copyright © Persits Software, Inc. 1998 - 2016 For technical support, write to support@persits.com.
of articles at SUPPORT.PERSITS.COM. Q1. I want to let my users specify the destination directory to which the files will be uploaded. I included
Persits.upload.1 Error '800a003d'
in the form, and my upload script looks aspupload registration key like this: <% n = Upload.Save(Upload.Form("Path")) %>. However this does not seem to work. A. You cannot use set upload = server.createobject( persits.upload ) error the Form collection before calling Save because it is not yet populated. The right way to do it is to upload the files to a temporary directory and https://support.persits.com/show.asp?code=PS02022586 then copy or move them to the specified destination directory as follows: <% n = Upload.Save "c:\upload" For Each File in Upload.Files File.Copy Upload.Form("Path") & "\" & File.ExtractFileName Next %> Q2: Will AspUpload work with any version of ASP? A: No. Early versions of the ASP's Request object did not provide the BinaryRead or TotalBytes methods which http://www.aspupload.com/faq.html the component heavily relies on. The best way to test whether your version of ASP allows uploading is to execute a simple script like <% n = Request.TotalBytes %> and see if the method is recognized by your ASP module. Q3: Where can I get the latest version of ASP? A: You must install the Microsoft Option Pack 4. Q4: Whenever I try to upload a file I am getting the error Persits.Upload.1 error '800a0003', Nothing has been posted. Why? A: One possible reason is that your version of ASP is old. See Q2 and Q3. Another possible reason is that you forgot to include the METHOD=POST attribute in your form. Q5: I am getting the error Persits.Upload.1 error '800a0001', Request.BinaryRead Failed. What does it mean? A. In most cases it means that your upload script calls the Request object prior to calling Upload.Save. You must never use Request.Form in your upload script, use Upload.Form instead. This error may also mean that your version of ASP is old and do
code (using ASP UPLOAD If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before http://www.aspmessageboard.com/showthread.php?120789-what's-wrong-with-this-code-(using-ASP-UPLOAD you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 5 of 5 Thread: what's wrong with this code (using ASP UPLOAD Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded dll download Mode 04-26-200203:52 PM #1 Mike M View Profile View Forum Posts Member Join Date Dec 1969 Posts 78 what's wrong with this code (using ASP UPLOAD Hey guys this page was working fine just last week and for some gay reason it has stopped working. I changed something and tried it again and it all of a sudden stopped working. The error I get from aspupload unspecified error ASP is:
Error Type:
Persits.Upload.1 (0x800A0001)
Unspecified error
The major code is:
<!--#include file="../includes/login.asp"-->
<%
'-----------------------------------------------------
'||||||| 24 Assign and log in UserID ||||||||||
'-----------------------------------------------------
if UserID = "" Or UserID = NULL Then
Response.Redirect "../includes/login.asp"
End if
%>
<HTML>
<BODY 62;
<%
Set Upload = Server.CreateObject("Persits.Upload.1")
Upload. OverwriteFiles = False
Count = Upload.Save(path)
If Upload.Form("Headline") <> "" Then
headline = "1"
Else
headline = "0"
End if
Set File = Upload.Files("THEFILE")
Hash = File.MD5Hash
.... UPLOAD INFO TO DATABASE
The line 15 error is pointing to the statement:
Count = Upload.Save (path)
I am really dumbfounded on this please help
Thanks
Mike M Reply With Quote 04-26-200203:55 PM #2 angst View Profile View Forum Posts Senior Member Join Date Dec 1969 Posts 422 RE: what's wrong with this code (using ASP UP be sure that the script is getting the path to the upload dir,
it look like it isn't,
try adding this to the script if you don't have it already.
path = "c:/my/upload/dir/"
or if you have that already,
then put this in:
response.write path
to see if the script is getting the path.
Reply With Quote 04-26-200204:04 PM #3 Mike M View Profile View Forum Posts Member Join Date Dec 1969 Posts 78 RE: what's wrong with this code (using ASP UP Actually I think I have pinpointed the e