Print Page | Close Window

Pure asp upload

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Rich Text Editor (RTE)
Forum Description: Support forum for the Web Wiz Rich Text Editor (RTE).
URL: https://forums.webwiz.net/forum_posts.asp?TID=16878
Printed Date: 29 March 2026 at 10:26am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Pure asp upload
Posted By: paulanthony
Subject: Pure asp upload
Date Posted: 11 October 2005 at 6:17am

For anyone that is having problems with having no COM control installed on the server for uploads you can use the following code to functions_upload.asp

<!--#include virtual="/includes/upload.asp"-->


at the top of the page.

line 397 add another case for no component...

Case "nocom"
            Dim Uploader
            Set Uploader = New FileUploader

            ' This starts the upload process
            Uploader.Upload()

    '******************************************
    ' Use [FileUploader object].Form to access
    '******************************************

' Check if any files were uploaded
        If Uploader.Files.Count = 0 Then
            Response.Write "File(s) not uploaded."
        Else
            ' Loop through the uploaded files
            For Each File In Uploader.Files.Items
       
        ' Check where the user wants to save the file

            ' Save the file
        File.SaveToDisk(Server.MapPath(strFileUploadPath))
        ' Output the file details to the browser if you want
        'Response.Write "File Uploaded: " & File.FileName & "<br>"
        'Response.Write "Size: " & File.FileSize & " bytes<br>"
        'Response.Write "Type: " & File.ContentType & "<br><br>"
        Next
    End If


You can grab the class at http://www.asp101.com/articles/jacob/scriptupload.asp





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