|
@ -11,6 +11,7 @@ |
|
|
<header> |
|
|
<header> |
|
|
<h1>图片跨域上传示例</h1> |
|
|
<h1>图片跨域上传示例</h1> |
|
|
<p>Image cross-domain upload example.</p> |
|
|
<p>Image cross-domain upload example.</p> |
|
|
|
|
|
<p>由于复印件</p> |
|
|
</header> |
|
|
</header> |
|
|
<div id="test-editormd"> |
|
|
<div id="test-editormd"> |
|
|
<textarea style="display:none;">####跨域上传原理 |
|
|
<textarea style="display:none;">####跨域上传原理 |
|
@ -74,9 +75,9 @@ exit; |
|
|
path : '../lib/', |
|
|
path : '../lib/', |
|
|
imageUpload : true, |
|
|
imageUpload : true, |
|
|
imageFormats : ["jpg", "jpeg", "gif", "png", "bmp", "webp"], |
|
|
imageFormats : ["jpg", "jpeg", "gif", "png", "bmp", "webp"], |
|
|
imageUploadURL : "http://192.168.1.2/editor.md/examples/php/cross-domain-upload.php", |
|
|
|
|
|
|
|
|
imageUploadURL : "http://www.ipandao.com/editor.md/examples/php/cross-domain-upload.php", |
|
|
crossDomainUpload : true, |
|
|
crossDomainUpload : true, |
|
|
uploadCallbackURL : "http://localhost/editor.md/examples/php/upload_callback.php" |
|
|
|
|
|
|
|
|
uploadCallbackURL : "http://localhost/editor.md/examples/php/upload_callback.html" |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
|
跨域时,上传的图片服务器后台只需要返回一个跳转URL并跳转到原页面同域下的callback页面,结构如下: |
|
|
跨域时,上传的图片服务器后台只需要返回一个跳转URL并跳转到原页面同域下的callback页面,结构如下: |
|
|