Laravel filemanager

Paul Ho
Paul Ho
Nov 1 · 2 min read

搭配ckeditor 4 一起使用遇到的坑


Reading Exif data is not supported by this PHP installation

由於Laravel filemanager(往後簡稱LFM)上傳檔案時有使用到EXIF資料,所以我一開始設定的php 容器,需要加上

docker-php-ext-install exif

才能正常讀取上傳圖檔資訊~


上傳完在最後useFile傳資料回頁面
可以看出只有responseType設定為json回傳陣列

在使用laravel filemanager時搭配 ckeditor 4上傳圖檔時一直出現錯誤視窗然後error valid,進去看套件程式碼發現如果強制回傳陣列ckeditor 4 就會正常跳到上傳圖檔完後的圖檔編輯縮放程序~

在時程上我沒有深究為什麼 ckeditor4出來的 formData 沒有 responseType參數,因此直接對formData下手~

強制在上傳時加料

以後再來研究一下 ckeditor 4的 一些詳細設定~

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade