How do I move the userfiles (for uploading images, files etc.) into the website folder and away from the webroot?
I'd like a dynamic solution, as I tend to work on localhost and then move to live server.
The baseUrl says: '/ckfinder/userfiles/';
I've tried (moving the ckfinder folder from the webroot into the following path and updating the baseUrl):
baseUrl = 'http://' . $_SERVER['HTTP_HOST'] . '/ckfinder/userfiles/';
But the fileuploader keep giving me 'Folder not found. Please refresh and try again.' when I click Browse Server for a file upload.
Anyone tried this? (I'd guess 99% of people trying to use this piece)
Wed, 06/13/2012 - 12:23
#1
Re: Move userfiles to website folder and NOT webroot?
Check out the following posts:
viewtopic.php?f=10&t=22424
viewtopic.php?f=10&t=13161
viewtopic.php?f=10&t=20439
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
Re: Move userfiles to website folder and NOT webroot?
Thanks, but that didn't help much.
CKEditor and CKFinder are probably used in very differenct setups. But I'm also sure that a majority of these setups look something like the following.
A developer developes many different solutions for different clients. They probably also do this on a local machine running a localhost server. And I bet that they do prefer NOT to have their userfiles shared among all the websites. So I'm surprised that userfiles are handled this way by default - that it defaults to the webroot.
There MUST be some way of configuring the path to userfiles to be:
$_SESSION['HTTP_HOST'] . '/clientwebsite/ckfinder/userfiles';
Saving one from the nightmare it is to configure the thing right.
Well, I know you're running a business on selling support for these products, so it's probably good for business to make it hard to use your software. But I'm also convinced that it pisses off a lot of potential clients.
Now, I've implemented both FCKEditor and CKEditor over the years with some time in between. But I ALWAYS seem to go through the same nightmare of setting the bugger up.
Now, if you're bored one afternoon in the near future; then please try to google for people being frustrated about this. And then sit down and rethink your whole 'documentation' from their point of view. Now, that I'm sure would help a LOT of people.