Print Page | Close Window

Modify RTE FILE BROWSER

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=25616
Printed Date: 30 March 2026 at 3:54am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Modify RTE FILE BROWSER
Posted By: Alessandro1983
Subject: Modify RTE FILE BROWSER
Date Posted: 18 April 2008 at 1:51pm
Hi i want to modify the path of the blank box in the page of the upload image (RTE_popup_adv_image.asp)
The blank box depend by the file RTE_FILE_BROWSER in this file there is the path of the uploaded file! /uploads/public
but i want to change this path with only /public general public folder!
the forum is in the folder http:www.mysite.com/forum
and i want to change the path into
http:www.mysite.com/public
it's clear??
how can i do this change??
please help me because this is veri important for me!
thanks



Replies:
Posted By: WebWiz-Bruce
Date Posted: 18 April 2008 at 1:55pm
Such a change would not be possible without coursing all sorts of problems. The public directory needs to be a sub domain of teh forum.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Alessandro1983
Date Posted: 18 April 2008 at 2:03pm
in aruba windows i can only upload image in general public folder
so i HAVE TO change the path
please can you tell me how can i change...if there are some problems after this is problems of mine


Posted By: Alessandro1983
Date Posted: 18 April 2008 at 2:14pm
there is.....
in setup_option_inc.asp :
***********************
'Upload folder path, DO NOT CHANGE as it may break your forums upload tools
Dim strUploadFilePath
strUploadFilePath = "uploads" 'This is the upload folder
***********************
and in RTE_FILE_BROWSER there is :
************************
'If file or image uploads are enabled then see if the user has an upload folder already
If blnAttachments = True OR blnImageUpload = True Then
 'Check the user has an upload folder, if they have uploaded annything
 blnUploadFolderExsist = userUploadFolder(strUploadFilePath)
 
 'If an upload folder doesn't exsist for the user then they just browse the public folder
 If blnUploadFolderExsist = False Then strUploadFilePath = strUploadOriginalFilePath & "/public"
 
 
'Else if image uploads are not enabled just display the empty upload folder to the user
Else
 strUploadFilePath = strUploadOriginalFilePath & "/public"
End If 
***********************
i've try to change strUploadFilePath by setup_option_inc.asp with mysite.com but in the page RTE_POPUP_ADV_IMAGE.asp there is the path Path: mysite.com/1
 
why when i change the strUploadFilePath the scipt put the number 1 after mysite and not put /public ??


Posted By: WebWiz-Bruce
Date Posted: 18 April 2008 at 5:07pm
This change carries a big warning in capitals not to change it:-

Quote 'Upload folder path, DO NOT CHANGE as it may break your forums upload tools


You should change it back to the default upload folder or you WILL have problems.

Also, it is not possible to use a web address to upload files to, if you could upload files to another site using 'myside.com' it would make things very easy for hacker to deface websites.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Alessandro1983
Date Posted: 18 April 2008 at 6:03pm
ok but i want only general public folder as the upload folder img....it's possibile??
at my own risk


Posted By: StarDust
Date Posted: 18 April 2008 at 10:41pm
This is not an easy task. Are you sure you can overcome the problems that will rise? Here is some guidelines:

1. You need to upload files using the PHYSICAL path
                    - OR -
You will have to enable parent path for the site on the server



WWF uses Server.MapPath method to upload files. This will not come in handy when you are uploading files with parent path disabled.

Lets assume that you have enabled parent paths. If WWF's default upload directory is http://[www.domain.com]/forum/uploads and you want to upload files to http://[www.domain.com]/public

Change this line
strUploadFilePath = "uploads" 'This is the upload folder


into
strUploadFilePath = "../public" 'This is the upload folder



CAUTION! This method might result in crashing your forum! There might some other scripts, those used to format posts needed to be edited ..and truely I do not know about the WW RTE. It might also crash.


Originally posted by Alessandro1983 Alessandro1983 wrote:

ok but i want only general public folder as the upload folder img....it's possibile??
at my own risk


-------------
http://board.ebizbd.net/">Tips, mods and skins for WWF v9.x


Posted By: Alessandro1983
Date Posted: 19 April 2008 at 8:19am
thanks for the answere but i 've try to do what yoy have write me...(modify only this line strUploadFilePath = "../public" 'This is the upload folder) but the answere of the server is this :
 
Server.MapPath() error 'ASP 0175 : 80004005'

Disallowed Path Characters

/forum/RTE_file_browser.asp, line 199

The '..' characters are not allowed in the Path parameter for the MapPath method.

 

why?



Posted By: WebWiz-Bruce
Date Posted: 19 April 2008 at 9:47am
Changing it so that everyone uploads to the same folder would require allot of recoding as the forum creates a folder for each user which also contains an XML file with the users details in it.

If you did recode the forum to allow everyone to upload to the same folder it would be a security issues as any of your users could delete the uploads of other users.

I would suggest leaving the upload 'as is'


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: StarDust
Date Posted: 19 April 2008 at 3:10pm
Originally posted by Alessandro1983 Alessandro1983 wrote:

The '..' characters are not allowed in the Path parameter for the MapPath method.

why?



Because Parent Paths are DISABLED on your server.



Originally posted by WebWiz-Bruce WebWiz-Bruce wrote:

I would suggest leaving the upload 'as is'


So do I. But he was saying that he couldn't use that for some reason and tried to do an alternative


-------------
http://board.ebizbd.net/">Tips, mods and skins for WWF v9.x


Posted By: Alessandro1983
Date Posted: 19 April 2008 at 3:20pm
there is an alternative??


Posted By: WebWiz-Bruce
Date Posted: 19 April 2008 at 3:20pm
From what I read it looks like he wants everyone to upload images to the same public folder and thats why he wants to make the modifications.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Alessandro1983
Date Posted: 19 April 2008 at 3:36pm
i've modify the upload action!
Every user can upload file img into the public folder!
So...i want that the file RTE FILE BROWSER display in the blank box this folder general ( /public).....it's so impossible?


Posted By: WebWiz-Bruce
Date Posted: 21 April 2008 at 8:50am
The problem with this is now anyone will be able to access and delete the images others have uploaded.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Alessandro1983
Date Posted: 21 April 2008 at 9:42am
IT ISN'T TRUE because in the blank box i can only select the img file and add into the prewiew box in the right!
I 've no way to delete any file...
i can do this only via FTP but only ME can enter via FTP into my domain!
 



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