ckeditor ckfinder integration in php in IISv5.1 server - php

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 !

Related

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 .

Permissions to files after upload with php

I having a problem which when files are uploaded to there folder with PHP they don't have any permissions to then view them on my website.
I'm using IIS and the IIS permission doesn't get set when the folder has the correct permissions.
Because what I'm doing it uploading the file location to my database then using that to display it on page if i change the file permissions it works fine but i would have to do this every time something is uploaded to my server.
Thanks,

How to change the folder of the uploaded image in ckeditor

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?

Upload path on Codeigniter gives error in Openshift

I am trying to upload image to my Codeigniter application hosted on Openshift. My app structure is as follows
App
-libs
-...
-php
- application
- public
- uploads
I want to upload images to this uploads folder. my code
$config['upload_path']=realpath(dirname(__FILE__)).'public/uploads/';
$config['allowed_types']="jpg|jpeg|gif|png";
$this->load->library('upload',$config);
if(!($this->upload->do_upload())){
$error=array('error'=>$this->upload->display_errors());
$this->load->view('profile',$error);
}
else{
$file_data=$this->upload->data();
$data['img']=base_url().'/public/uploads/'.$file_data['file_name'];
$this->load->view('success',$data);
}
But above gives me The upload path does not appear to be valid. error. I have tried several ways. But the problem is the server do not allow to upload to the location.
Normally I can access the files in the uploads folder. But when I try to write data (store file) it doesn't allow. How can I fix this thing.
Note: I want the solution for the Openshift server but not the localhost
The path is supposed to be $OPENSHIFT_DATA_DIR (which points to ~/app_root/data).
You can also write to /tmp but those files will be treated as ephemeral.
You do not have write permissions anywhere in the file system.

Categories