Hello, I am using CKEditor / CKFINDER on my site as my texteditor and image upload.
CKEditor and CKFinder Folder need to put on the root, outside my Public_html .
My dir structure be like :
- ckeditor, -CKfinder, -public_html
And my text editor image stored in : ckfinder/userfiles/files
Question :
how to change CKFinder default image upload path ? i want to puth my image files to inside public_html
example my domain is : domain.com, how can i get my images url that stored in ckfinder dir that outside my public_html?
i spent my times in many days to solve this but i havent found the sollution.
i found so many topic about this but nothing solve my problem.
Please have a look at the root option of the local filesystem backend described here in the documentation. You can configure CKFinder to store uploaded files in any directory you like by setting its path as backend root.
Related
So for some reason my images are just showing a broken image icon when I open my website from the adminpanel in WP. But when I open the index.php file the images are showing just as I want them to. Same with my javascript.
I have linked the image directory correctly since they are showing up when I only open the index.php file. They are also in the media library in wordpress.
Maybe a simpler explanation is:
localhost/website/wordpress = no images, only broken image icons.
localhost/website/wordpress/wp-content/themes/mywebsite/index.php = the images are showing.
EDIT: I found out you could copy the link that wordpress gives you for every image, and that made it work.
Is that the only way of doing it or is there another way?
Check is your .htaccess file for rules applied to images or image folder. Rename it to be sure
Remove image related wordpress plugins like "Adaptive Images"
It may due to file accessibility permission issue. Just give permission to your image folder. check your .htaccess file (on root).
Install a file browsing plugin or directly go to the hosted site and edit the .htaccess file. Add the folder name on the file
This is not the first time I am doing file upload using CI. However in this particular case I want to upload images or files to shortcut folder created at project root. This is what my project root looks like in following image:
So basically what I had been trying to do is using php filesystem function is_dir('goku') (goku is shortcut folder as shown in above image that links to C:\Users\Name\Desktop) and if true then create a sub-folder inside it and insert the image or file in that sub-folder. However I didn't find any way to make the shortcut folder recognize as directory and returns file upload error -The upload path does not appear to be valid. Upload works fine on other folder. I know that php is not recognizing the shortcut folder as directory because on running is_dir('goku') returns false. I have gone through all probable solutions but now again back to where I started. Any helpful hints regarding this is highly appreciated. Thank You!!!
Using the library Codeigniter
library upload single file and multi file
Easily upload .
I've developed a small application in php and mysql, where i'm uploading pdf and moving file to UPLOADS folder and storing path in database.
But in viewing after passing path i'm not able to open pdf on browser.
I've uploaded PDF.JS files in my folder aswel.
Below are my testing urls.
http://www.farukhzama.com/fileupload/index.php
http://www.farukhzama.com/fileupload/view.php
Your link is :
http://www.farukhzama.com/fileupload/viewer.html?file=uploads/47920-ombudsman-acknowledgement.pdf at view.php file, which is wrong path to get the pdf file.
Give it right path like this => http://www.farukhzama.com/fileupload/uploads/47920-ombudsman-acknowledgement.pdf
Thanks!
I'm trying to upload images. but the folder is creating in wwwroot place. i want to upload the image in 'uploads' folders. By the way here is IIS V5.1.!
ckeditor
wwwroot-->ckeditor_ckfinder-->
ckfinder
uploads
index.php
Change baseDir / baseUrl settings in the server side configuration file to point to the uploads folder.
I got the solution. You must give uploads file permission perfectly !
I have implement CKeditor with file manager. Its working fine without any change in file manager plugin. Now I need to change the file uploading path folder.
I need to change the ./userfiles folder into localhost/myproject/uploads/editor_image
How can I do that?