How to browse a directory within trsteel CKEditor ? - php

I have successfully installed trsteel CKEditor for symfony 2, and it works fine except for image upload.
When I try to browse the server to updload an image, it returns me the html page and not the directory (the route is configure to show a webpage but I don't know how to do overwise).

I answered almost the same question before here
Shortly, you need a bundle to work with files on the server side, and provide integration with ckeditor.

Related

No thumbnail shown in Laravel's File Manager

Currently using Laravel version 5.7.13 with Unisharp's CKEditor & File-Manager
I successfully linked the directories to show the images that I have in the file. However, the thumbnails were not shown.
Is the problem lies in my directory routing (lfm.php)?
Edit 1: Just found the solution for my problem, apparently the thumbnails were "broken" due to the link provided. Then, I changed my filebrowserImageBrowseUrl in the CKEditor's script to a raw url without the 'index.php'.
Before: ../../laravel-filemanager?type=Images
After: http : //localhost/[root-directory]/public/laravel-filemanager?type=Images
In conclusion, the 'index.php' is preventing the thumbnails from showing up.
Now it's working perfectly.

issues with Unisharp laravel file manager TinyMCE integration

TinyMce works perfecly with unisharp laravel filemanager on my localhost but it has issues on server
In server I have created a folder beta and pasted entire laravel project inside it
everything works smoothly but when we click on upload image button from tinymce it shows me below image
I have tried all the possible solutions still its not working on my server
on server the url is domain-name/beta/public/index.php and when uploading it
Any Help is Appreciated !!
In your config JavaScript file change from
path_absolute : "/",
to
path_absolute : "../../",

php file upload with server directory access

I am facing some typical problem from one of my project.
A section in my project need a file up loader. The requirement is when an user clicks on the browse button, it will not only opens up the local directory, the already uploaded file directory need to accessed as well.
In simple file uploader only the local directory can be accessed, I cannot able to fine any way out.
If any one can help me in this issue, it will be great for me.
Thanks in advance.
Is impossible to use to use the "file open dialog" / file uploader to browse files from server.
You can create a dialog inside your browser with (html,css,php).
Is difficult to give an example, because I do not know your requirements.
However you have to use two buttons, it will be easier:
upload from your computer
upload from the server
On click "upload from the server" , opens a window IN BROWSER (HTML+CSS) , that lists your folders and files on the server.
To implement this , read here:
http://php.net/manual/en/function.scandir.php
http://php.net/manual/en/function.readdir.php

two sets of same php code with same version working differently on two different servers?

I made a class that converts a string of text into a png image and uploads on the server:
http://testing.mehhh.org/php/png.php (you can view php source on the page)
http://testing.mehhh.org/php/phg.php <-- shows php version
this one works great.
now I am trying to get this to work on a clients server
http://autoxplorer.com/~tameem/png.php This doesn't work!
http://autoxplorer.com/~tameem/php.php <-- also using same php version
what gives? I thought it's a permission thing.. but the png folder has full access.. and I tried a super simple uploading script and it runs and saves files to that folder. What is going on here?
You have just put online some PHP scripts that link to images. The link to the images actually is different.
http://testing.mehhh.org/php/png/4de9441d68cf8_1307132957.png
http://autoxplorer.com/~tameem/png/4de9424d41208_1307132493.png
While the first link returns actually an image, the second image link gives a 404 error. Looks like you have not configured your server properly to actually execute the PHP in the second case to return an image.

How to set the default location of the FCKEditor file browser?

I'm working the the image upload piece of the FCKEditor and I've got the uploading working properly but am stuck with the server file browser.
You can see in the dialog above has a Browse Server button which pops up the following dialog
The problem is that I have no idea which folder the file browser is pointing at.
I've set the UserFilePath and USerFilesAbsolutePath in the PHP connector config.php to control where my image uploads go.
How can I configure the file browser so that it starts off pointing at the same folder where my uploads are going?
Edit
The ImageBrowserURL property is NOT what I'm looking for. That property is used for having the Browser Server button point somewhere other than the default file browser.
My problem is figuring out how to point the default file browser to a specific directory.
Please read this post of mine on FCKeditor forums. Are you having the same problem I had?
Is it this?
ImageBrowserURL
(string) Sets the URL of the page called when the user clicks the "Browse Server" button in the "Image" dialog window.
In this way, you can create your custom Image Browser that is well integrated with your system.
See http://www.clinicaestet.ro/FCKeditor/_docs/contents/012.html
You need to set some config information for the FCKEditor. This is done either in javascript code in your webpage or you can do it in the FCKEditor config file which is located typically in /fckeditor/fckconfig.js file. If you did not install the fckeditor to the typical fckeditor directory, you will need to replace that part of the path with the correct path.
In the fckconfig.js file you need to change the "ImageBrowserURL" setting to whatever you want.
FCKConfig.ImageBrowserURL = '/myfilebrowserpath/browser.php' ;
This is where the dialog will look for your files. Here is a link to FCKEditor documentation on this. I hope that helps.

Categories