doulian5857 2014-07-31 13:28
浏览 485

Tinymce编辑器图片上传插件上传路径网址

I am using an image uploader plugin called justboil.com (jbiimages) for tinymce editor.

When I upload image it is working fine on localhost, but on website image is not uploading. It's showing:

Upload in progress… This is taking longer than usual. An error may have occurred

The domain and path is http://www.testsite.com/admin/upload_images/img1.jpg

Here is the config code for the plugin

$config['img_path'] = '/admin/upload_images'; // Relative to domain name

$config['upload_path'] = $_SERVER['DOCUMENT_ROOT'] . $config['img_path']; 

I've added relative_urls: false, remove_script_host: false, in init but my image is not uploading and I'm getting two errors in console those are:

Failed to load resource: the server responded with a status of 404 (Not Found) GET:http://www.testsite.com/admin/js/tiny_mce/plugins/jbimages/ci/index.php/blank/english 404 (Not Found) POST:http://www.testsite.com/admin/js/tiny_mce/plugins/jbimages/ci/index.php/upload/english 404 (Not Found)

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 如何在scanpy上做差异基因和通路富集?
    • ¥20 关于#硬件工程#的问题,请各位专家解答!
    • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
    • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
    • ¥30 截图中的mathematics程序转换成matlab
    • ¥15 动力学代码报错,维度不匹配
    • ¥15 Power query添加列问题
    • ¥50 Kubernetes&Fission&Eleasticsearch
    • ¥15 報錯:Person is not mapped,如何解決?
    • ¥15 c++头文件不能识别CDialog