Any idea why this is happening? The directory exists on the FS. It's an upload script to put files in a database directory. It errors out on the upload.
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/ProspectTracking/alphatest/default/Upload/upload.asp, line 3
800401f3
SELECT.ASP
Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <script language="javascript" type="text/javascript"> <!-- function intOnly(i) { if(i.value.length>0) { i.value = i.value.replace(/[^\d]+/g, ''); } } //--> </script> <script language="javascript" type="text/javascript"> <!-- function inosemi(i) { if(i.value.length>0) { i.value = i.value.replace(/[;]+/g, ''); } } //--> </script> <script type="text/javascript"> /*********************************************** * Disable "Enter" key in Form script- By Nurul Fadilah(nurul@REMOVETHISvolmedia.com) * This notice must stay intact for use * Visit http://www.dynamicdrive.com/ for full source code ***********************************************/ function handleEnter (field, event) { var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode; if (keyCode == 13) { var i; for (i = 0; i < field.form.elements.length; i++) if (field == field.form.elements[i]) break; i = (i + 1) % field.form.elements.length; field.form.elements[i].focus(); return false; } else return true; } </script> <title></title> <link href="../../../../style.css" rel="stylesheet" type="text/css"> <script language="JavaScript" src="../../../../main.js" type="text/javascript"></script> </head> <body class="content" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0"> <form class="content" action="upload.asp" method="POST" enctype="multipart/form-data"> <strong>Select file #1:</strong><br> <input type="file" size="22" name="FILE1"> <p><strong>Select file #2:</strong><br> <input type="file" size="22" name="FILE2"> <p><strong>Comments:</strong><br> <input type="file" size="22" name="FILE3"> <p><strong>Select file #1:</strong><br> <input type="file" size="22" name="FILE4"> <p><strong>Select file #2:</strong><br> <input type="file" size="22" name="FILE5"> <p><strong>Comments:</strong><br> <input type="file" size="22" name="FILE6"> <p><input type="submit" value="Upload!"> </form> </body> </html>
UPLOAD.ASP
Code:<% ' Perform the upload Set Post = Server.CreateObject("ActiveFile.Post") Post.Upload "D:\WWWRoot\SITE.com\database\alphatest" ' Display a summary of the uploaded data For Each FormInput In Post.FormInputs If FormInput.ContentType <> "" Then ' Display uploaded file information Response.Write FormInput.Name & " = " & FormInput.File.FileName & _ ", size=" & FormInput.File.Size & "<BR>" Else ' Display form element name and value Response.Write FormInput.Name & " = " & FormInput.Value & "<BR>" End If Next %>


Reply With Quote
Bookmarks