Initial code of commit
This commit is contained in:
20
code/public/uploader/upload.php
Normal file
20
code/public/uploader/upload.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?
|
||||
|
||||
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>";
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user