Hi, everybody!!
i'm trying to find a solution for a problem when i try to upload an image, flash or file. it upload the file fine, but by example:
When you try to insert an image and you have to upload it, there are 2 options to upload, the first option is on the first dialog and the second one appears when you click on the main dialog "browse server". The program automatically created 4 folders, one for files, images, flash and media. When i use the upload option located on the "browse server", it uploads the file correctly inserting the file in the right folder (in case of image, it puts the image on the Images folder) insted of using the upload option of the first dialog, because it upload the image in the root folder asigned, by default ConfigUserFilesPath = "/UserFiles/", this means no problem if the user will use the image one time, but because the file is inserted into a folder that the user can't see, there is no way to re-use it, it should insert the image into the right folder (images) because of it's extension, do you have any idea what's happening here?? thanks and let me know. I think it is related to the configuration on upload folder and not the browser folder, because it uses diferent configurations... thanks and let me know.
i'm trying to find a solution for a problem when i try to upload an image, flash or file. it upload the file fine, but by example:
When you try to insert an image and you have to upload it, there are 2 options to upload, the first option is on the first dialog and the second one appears when you click on the main dialog "browse server". The program automatically created 4 folders, one for files, images, flash and media. When i use the upload option located on the "browse server", it uploads the file correctly inserting the file in the right folder (in case of image, it puts the image on the Images folder) insted of using the upload option of the first dialog, because it upload the image in the root folder asigned, by default ConfigUserFilesPath = "/UserFiles/", this means no problem if the user will use the image one time, but because the file is inserted into a folder that the user can't see, there is no way to re-use it, it should insert the image into the right folder (images) because of it's extension, do you have any idea what's happening here?? thanks and let me know. I think it is related to the configuration on upload folder and not the browser folder, because it uses diferent configurations... thanks and let me know.
RE: please Help with File Manager
Today, I just found this solution. I think it's a bug in the upload code actually. If you go to \editor\filemanager\upload\php\upload.php (I'm using php...I've not checked the other versions), you can change the following two lines (I hope this posts right!) :
From (line 66 for me):
$sServerDir = GetRootPath() . $Config["UserFilesPath"] ;
To:
$sServerDir = GetRootPath() . $Config["UserFilesPath"].$sType.'/' ;
***And***
From (line 91 for me):
$sFileUrl = $Config["UserFilesPath"].$sFileName ;
To:
$sFileUrl = $Config["UserFilesPath"].$sType.'/'.$sFileName ;
This should cause the upload to go to the right directory and to create the right HREF link URL. I could not get the resource browser to look at the root directory so I just copied the few files I already had there (and that were already being used as links...couldn't "move" them) into the correct respective directories. From now on it should be good to go.
Hope this can help some folks!