我试图整合WYSIWYG文本编辑器:tinymce和照片管理员/上传者:jbimage。我在Linux ubuntu 16.04(64位)上运行这个项目。
问题
jbimage的上传过程100%在本地工作。但是当我将脚本上传到我的服务器时,上传过程中jbimage显示403访问被禁止,我已经谷歌关于这个问题,如文件夹权限,区分大小写等,但仍然没有。
这是我的代码:
查看
<script type="text/javascript" src="<?php echo base_url() ?>assets/plugins/tinymce/js/tinymce/tinymce.min.js"></script>
<script type="text/javascript">
tinymce.init({
selector: "textarea",
plugins: [
"advlist autolink lists link image charmap print preview anchor",
"searchreplace visualblocks code fullscreen",
"insertdatetime media table contextmenu paste jbimages"
],
toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image jbimages",
relative_urls: false
});
</script>
jbimage config.php
$config['img_path'] = '/myproject/assets/images/upload'; // Relative to domain name
$config['upload_path'] = $_SERVER['DOCUMENT_ROOT'] . $config['img_path']; // Physical path. [Usually works fine like this]
任何帮助都会如此欣赏,谢谢