the SAE has its own cloud storage Storage , first open storage, and then create a new Domain , and named (hereinafter named "uploads").
2. Change the upload file upload_json.php in Kindeditor.
(1), in require_once ' json.php '; add the following code:
if (Isset ($_server[' http_appname ')) $issae = true; Whether Sina cloud Platform else$issae = false; $domain = ' kindeditor '; Picture Domain name
(2), in {Check directory, check directory write permissions} and {Create folder} plus if judgment, determine if it is SAE, when not the SAE to execute the original code: if (! $issae);
(3), {Move file} Plus judge whether it is non-SAE, non-SAE to execute the original code, if the SAE executes the following code:
$s = new saestorage (); $r = $s->upload ($domain, $new _file_name, $tmp _name); if (! $r) alert ("The Sina Cloud platform failed to upload the file, please check that the domain settings are correct.") "); $file _url = $s->geturl ($domain, $new _file_name);
The above three steps can be uploaded to the SAE storage domain kindeditor.
Use the Kindeditor operation in the SAE in the PHP environment Stroge