Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - ASP Upload without proper component/dll support
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedASP Upload without proper component/dll support

 Post Reply Post Reply
Author
cschulz View Drop Down
Newbie
Newbie


Joined: 17 March 2006
Location: Netherlands
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote cschulz Quote  Post ReplyReply Direct Link To This Post Topic: ASP Upload without proper component/dll support
    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

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 !

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.