Hi all,
I found in the documentation and see the below code can help to show the upload tab in image button
But my question is, where can i '/browser/browse.php' and '/uploader/upload.php'
Or it is made on my own ??
Thanks
I found in the documentation and see the below code can help to show the upload tab in image button
CKEDITOR.replace( 'editor1',
{
filebrowserBrowseUrl : '/browser/browse.php',
filebrowserUploadUrl : '/uploader/upload.php'
});But my question is, where can i '/browser/browse.php' and '/uploader/upload.php'
Or it is made on my own ??
Thanks

Re: File Browser (Uploader)
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!
Re: File Browser (Uploader)
http://docs.cksource.com/ckeditor_api/s ... in.js.html
CKEDITOR.replace( 'MyToolbar', { filebrowserBrowseUrl : '/browser/browse.php', filebrowserUploadUrl : '/uploader/upload.php' });Re: File Browser (Uploader)
http://docs.cksource.com/ckeditor_api/symbols/src/plugins_filebrowser_plugin.js.html
<script language="JavaScript" type="text/javascript"> CKEDITOR.replace( 'fmsg', { filebrowserBrowseUrl : '/browser/browse.php', filebrowserUploadUrl : '/uploader/upload.php' }); CKEDITOR.replace( 'fmsg', { toolbar : 'MyToolbar' } ); </script><script language="JavaScript" type="text/javascript"> CKEDITOR.replace( 'fmsg', { filebrowserUploadUrl : '/uploader/upload.php' }); CKEDITOR.replace( 'fmsg', { toolbar : 'MyToolbar' } ); </script>Re: File Browser (Uploader)
<? if(isset($_FILES['upload'])){ ------ Process your file upload code ------- $filen = $_FILES['upload']['tmp_name']; $con_images = "uploaded/".$_FILES['upload']['name']; move_uploaded_file($filen, $con_images ); $url = "http://www.yourdomain.com/".$con_images; $funcNum = $_GET['CKEditorFuncNum'] ; // Optional: instance name (might be used to load a specific configuration file or anything else). $CKEditor = $_GET['CKEditor'] ; // Optional: might be used to provide localized messages. $langCode = $_GET['langCode'] ; // Usually you will only assign something here if the file could not be uploaded. $message = ''; echo "<script type='text/javascript'>window.parent.CKEDITOR.tools.callFunction($funcNum, '$url', '$message');</script>"; } ?>Re: File Browser (Uploader)
after i use your code
when i try to click upload, it will prompt a save as box which is calling my upload.php
did i miss out sth?
I used your php and change the domain
Hello There,
Hello There,
Has anyone figured out what would come in broser.php?
I have done the upload function, but not getting how to use browser.php.
Kindly help me if anyone knows.
thanks.
Hello everyone,
Hello everyone,
I'm done with the code given above. But when I click upload, something calls for upload.php. And can anyone show me the way to use browser.php.
Thanksfully.
Hello Carter,
Hello Carter,
You need to create upload.php file. In this file you will recieve posted data when someone click on button send it to server. So, store your image from this file.
Below is example of upload.php file code.
if(isset($_FILES['upload'])){ // ------ Process your file upload code ------- $filen = $_FILES['upload']['tmp_name']; $con_images = "uploaded/".$_FILES['upload']['name']; move_uploaded_file($filen, $con_images ); $url = $con_images; $funcNum = $_GET['CKEditorFuncNum'] ; // Optional: instance name (might be used to load a specific configuration file or anything else). $CKEditor = $_GET['CKEditor'] ; // Optional: might be used to provide localized messages. $langCode = $_GET['langCode'] ; // Usually you will only assign something here if the file could not be uploaded. $message = ''; echo "<script type='text/javascript'>window.parent.CKEDITOR.tools.callFunction($funcNum, '$url', '$message');</script>"; }