1 Error 800a0001
Contents |
most
Persits.upload.1 Error '800a003d'
cases it means that your upload script uses Request.Form or Request.QueryString
Aspupload.dll Download
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 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 in the form, and classic asp upload file to server my upload script looks like this: <% n = Upload.Save(Upload.Form("Path")) %>. However this set upload = server.createobject( persits.upload ) error does not seem to work. A. You cannot use the Form collection before calling Save because it is not aspupload registration key yet populated. The right way to do it is to upload the files to a temporary directory and then copy or move them to the specified destination directory as follows: <% n https://support.persits.com/show.asp?code=PS02022586 = 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 the component heavily relies on. The best way to test whether your version of ASP allows uploading is to execute a http://www.aspupload.com/faq.html 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 does not support the Request.BinaryRead method. See Q2 and Q3. Q6: Why am I getting the following error: Microsoft VBScript runtime error '800a01ad' ActiveX component can't create object A. It is a permission problem. Make sure Everyone has Full Control over AspUpload.dll. Q7:
Not open for further replies. KenBTDC I have tried to convince support at DASP that http://community.discountasp.net/threads/unspecified-error-with-simple-upload-and-aspupload.8331/ there is nothing wrong with the code below. They assure me there is. If I try to upload a 2KB file I receive the following error: Persits.Upload.1 error '800a0001' Unspecified error /common/scrUploadImage.asp, line 50 Line 50 is bold. If anyone can help it would be most appreciated. Thanks HERE IS THE CODE dll download OF THE PAGE THAT SENDS THE REQUEST:
HERE IS THE CODE OF THE PAGE THAT RECEIVES THE REQUEST: Set objUpload = Server.CreateObject("Persits.Upload") Set objImage = Server.CreateObject("Persits.Jpeg") dim fs,fname set fs=Server.CreateObject("Scripting.FileSystemObject") intType=1 strMyVar = "MyDir" SELECT CASE intType CASE 1 strRootFolder = Server.MapPath("../images/" 1 error 800a0001 & strMyVar & "\" strRootFolderVirtual = "..images/" & strMyVar & "/" CASE 2 END SELECT Response.write "ROOT DIR:" & (strRootFolder) & "" Response.write "VIRTUAL DIR: " & (strRootFolderVirtual) & "
" If fs.FolderExists(strRootFolder)=false then fs.CreateFolder(strRootFolder) fs.CreateFolder(strRootFolder & "tn\") End If count = objUpload.Save(strRootFolder) For Each File in objUpload.Files Response.Write File.Name & "= " & File.Path & " (" & File.Size &" bytes)
" 'fs. Next set fs = Nothing set objUpload = Nothing set objImage = Nothing KenBTDC, Jul 30, 2009 #1 wisemx Hi, This is a handy tool, I've used it a lot on DASP servers. Thing is, you should not use some of the settings and you should create error trapping. I'll offer some tips: 1) Remove all Virtual directives. 2) Use exact paths. Look in your DASP Control Panel for your sites path. Example... On Error Resume Next Upload.OverwriteFiles = False Upload.Save "E:\web\wisemx\htdocs\fileup\files" 3) I'd get rid of "count" and DIM so