Print Page | Close Window

ASP Upload without proper component/dll support

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=18760
Printed Date: 29 March 2026 at 3:12am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: ASP Upload without proper component/dll support
Posted By: cschulz
Subject: ASP Upload without proper component/dll support
Date Posted: 17 March 2006 at 8:45pm

Hello
I am currently working on using this excelent editor component in BlogX, since my ISP (or rather the school's ISP) does only provide me with the barest of support an I hardly dare ask for some write/modify settings I also was looking for an asp only (so no dll reg required) upload component and I found one by Lewis Moten .. Details below ..

Author:        Lewis Moten
URL:        http://www.lewismoten.com - http://www.lewismoten.com

I was able to integrate the upload component into the editor upload functionality. By making some basic additions ... But since I'm not an ASP developer I skipped error handling and multi file upload  etc etc ...  Smile


<!-- #INCLUDE FILE="clsUpload.asp"-->

....

        '******************************************
        '***     CLS Upload 3                                           ****
        '******************************************


                Case "ClsUpload"

                      Dim Upload
                      Dim Folder
                      Set Upload = New clsUpload
                      strNewFileName = Upload("File").FileName

              'Replace spaces with underscores
              strNewFileName = Replace(strNewFileName, " ", "_", 1, -1, 1)

                  Folder = Server.MapPath(strFileUploadPath) & "\"
                      strNewFileName = Upload.UniqueName(Folder, strNewFileName)
                      Upload("File").SaveAs Folder & strNewFileName

              'Pass the filename back
              fileUpload = strNewFileName

                      Set Upload = Nothing

              'Clean up
              Set file = Nothing
              Set objFSO = Nothing
              Set objUpload = Nothing


Is what I added to the functions_upload.asp file

in RTE_Setup.asp I added

Const strUploadComponent = "ClsUpload"    'CLS Upload 3 = asp only upload

RTE and CLS were both placed in the BlogX Admin\ subdir ...

It works for me ... but clearly some development is needed ... if anyone makes any additions please let me know !




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