Official
https://github.com/Kwaadpepper/laravel-responsivefilemanager
Thumb folder creation issue on windows:
System will try to create thumb folders with relative path and will fail to detect if the folder exists or not in
\vendor\kwaadpepper\laravel-responsivefilemanager\src\ResponsiveFileManager\utils.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
public static function createFolder($path = null, $path_thumbs = null, $ftp = null, $config = null) { if ($ftp) { return $ftp->mkdir('/'.config('rfm.ftp_base_folder').'/'.$path) && $ftp->mkdir('/'.config('rfm.ftp_base_folder').'/'.$path_thumbs); } else { //This is key to prevent creation error $p_path = base_path($path); $p_path_thumbs = base_path($path_thumbs); //logg($p_path_thumbs); if (file_exists($p_path) || file_exists($p_path_thumbs)) { return false; } $oldumask = umask(0); $permission = 0755; if (isset($config['folderPermission'])) { $permission = $config['folderPermission']; } if ($path && !file_exists($path)) { mkdir($path, $permission, true); } // or even 01777 so you get the sticky bit set if ($path_thumbs) { mkdir($path_thumbs, $permission, true) or die("$path_thumbs cannot be found"); } // or even 01777 so you get the sticky bit set umask($oldumask); return true; } } |
Bug:
After selecting a file to upload, the status bar keep showing “processing” and nothing works.
Solution:
Replace this line in dialog.php
1 |
<script src="//blueimp.github.io/JavaScript-Load-Image/js/load-image.all.min.js"></script> |
with this one:
1 |
<script src="//cdnjs.cloudflare.com/ajax/libs/blueimp-load-image/2.18.0/load-image.all.min.js"></script> |
Reference:
https://stackoverflow.com/questions/61788630/responsive-filemanager-upload-jpg-error-keep-processing