|
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 ... 
<!-- #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 !
|