Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 15th, 2007, 03:56 AM
Registered User
 
Join Date: Jun 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Upload File With ActiveFile Error

Dear All,

I ready ready need ur all help , i plan to upload the file using ASP and ActiveFile object, the code i was write as below (I search from Internet)

UploadFile.asp
===========

<form method="post" action="FileUpload1.asp" name="submit" enctype="multipart/form-data">
Choose A File: <input type="file" name="filefield"><br><br>
<input type="submit" name="submit" value="submit"><br>
</form>

FileUpload1.asp
============

<%
Set Post = Server.CreateObject("ActiveFile.Post")

Post.Upload "C:TEMP"


' 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

%>

When try to run, the error below display:

Server object, ASP 0177 (0x800401F3)
Invalid class string

I not know why? is it i not have this object in my workstation? How can i check the object?

Hope somebody can try to solve my problem. TQ :D


Judy





Similar Threads
Thread Thread Starter Forum Replies Last Post
File upload error balesh.mind ASP.NET 2.0 Professional 2 August 20th, 2007 02:52 PM
Filter File Types in ASP.NET File Upload ramuis78 ASP.NET 2.0 Basics 2 May 31st, 2007 10:50 AM
Whole Folder upload(Multi file Upload) ramasamy_rams XML 1 September 9th, 2005 12:43 PM
JSP file upload and delete file pandjie JSP Basics 0 January 29th, 2005 10:49 PM
file upload error Ashleek007 Beginning PHP 2 June 8th, 2004 05:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.