How to change the folder of the uploaded image in ckeditor - php

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?

Related

Download Full directory from PHP

a simple question that's freaking me out. I created an upload zone in which files are uploaded to a folder that was dynamically created by an mkdir. But if I wanted to download that folder how do I proceed? I don't necessarily need it to be made .zip just for me to be readable and that the files inside it are intact.
I tried pointing directly at the folder with the following href but it does not work.
<td align="center"><b>Scarica Bolle</b></b></td>

Change CKEditor / CKFinder Images Upload Path in PHP MYSQL

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.

File upload in codeigniter in shortcut folder

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 .

Wordpress renames files when no duplicate is found

I have code that relies upon a certain file naming convention. When I stopped working locally and made a new database and setup online and went to upload the images for the posts. Wordpress adds a -1 or -2 to my images even though it is a fresh db and fresh wordpress install.
The naming conventions I have are like so..
cover_somename.jpg
cover_somename_bg.jpg
Why would it make my files like cover_somename_bg-1.jpg when there are NO DUPLICATES in the media library. How can I turn this renaming feature off/ rename the files myself.
When you upload image on local it will create move image to upload folder. And while you moving project to live you create new data base you have only remove the image name from the data base table.
But you image still remain on Upload folder under the month folder that you have added
When you upload the same file name on live server on same month then it will check for "if file already exist or not if already exist then it will rename new uploaded file as you get.
you create new data base so you old image wouldn't display on admin so you need to clear the folder under the upload folder then it work fine please try once.
Ah images aren't in the DB turns out they are in uploads folder and if the uploads folder has images but its a fresh install the media library will be empty but will act like it has those files and renaming will occur.

ckeditor ckfinder integration in php in IISv5.1 server

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 !

Categories