Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Upload image and Browse server files #3

Closed
olairmarcos opened this issue Nov 6, 2014 · 10 comments
Closed

Upload image and Browse server files #3

olairmarcos opened this issue Nov 6, 2014 · 10 comments

Comments

@olairmarcos
Copy link

Hello my friend,
I installed the plugin on the website and when I upload an image via ckeditor (image upload) a 404 error appears.
When will I see the image files (Browse server) I have a popup with an error 404 page not found. What can I do to eliminate this error?
Thanks for your help.

@jdalsem
Copy link
Member

jdalsem commented Nov 7, 2014

I'm guessing your installation in in a subfolder (www.domain.com/elgg). There was an issue in the js where subfolders were ignored. That is fixed, so please redownload the latest master and try again :)

@jdalsem
Copy link
Member

jdalsem commented Nov 7, 2014

missed 2 more of these js urls... should be ok now

@olairmarcos
Copy link
Author

Hello Jdalsem
Updating the plugin solved the previous problem. The image was uploaded in the editor but not being saved in the user files folder.
My elgg is installed in a folder and the data is being saved in a folder below the root path of the site.
Settings my site:

  • The site URL: http://domain.com/elgg194/
  • The full path of the Elgg installation: /home/domaincom/public_html/elgg194/
  • The full path of the data directory: /home/domaincom/dataelgg194/

We see that the image file is not being saved in the folder: dataelgg194
Thus the image is not displayed in the editor when you edit your website content.
Thanks for help.

@jdalsem
Copy link
Member

jdalsem commented Nov 7, 2014

The image is not saved in the users own folder, but there is a special folder in dataroot for these images. Folder structure should be something like <dataroot>/ckeditor_extended/1/1/<user_guid>/name.jpg

Do you see any files in this folder? Does the webserver have the correct write rights? Does regular profile avatar upload work?

@jdalsem
Copy link
Member

jdalsem commented Nov 7, 2014

Do you see the image when uploading to the editor, but not when viewing the content??

@olairmarcos
Copy link
Author

Hello Jdalsem
I found that the CKEditor-extended is not creating the directory structure and does not save the image inside the mod / ckeditor_extended folder. File permissions ckeditor_extended in 777. The standard elgg works to save files on the site in the Users folder. Thanks.

@olairmarcos
Copy link
Author

My opinion would be to create the possibility to save the image in the same folder of user data? eg:
The full path of the data directory: / home / domaincom / dataelgg194 / ckeditor_extended

In this option, the images are saved in the same path of elgg, separate folder ckeditor_exetended / 1/1 / image.jpg

Thanks

@jdalsem
Copy link
Member

jdalsem commented Nov 7, 2014

if it is not possible for the plugin to write to a certain path, this should cause error warnings... could you check your error log for pointers?

@olairmarcos
Copy link
Author

There's no error message in the log in the cpanel server.

@jdalsem
Copy link
Member

jdalsem commented Nov 17, 2014

closed as it is reported as fixed in #4

@jdalsem jdalsem closed this as completed Nov 17, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants