laravel-filemanager icon indicating copy to clipboard operation
laravel-filemanager copied to clipboard

cant delete folder when there is contents

Open azizikri opened this issue 2 years ago • 2 comments

Please check the following instructions before submitting a bug :

And provide the followings :

  • Operating system : Windows 10
  • Laravel version : 8
  • Package version : v2.5.1
  • Steps to reproduce your issue : create folder and fill it with image, and delete it
  • Error : Method UniSharp\LaravelFilemanager\Controllers\DeleteController::error does not exist.

azizikri avatar May 17 '22 16:05 azizikri

update here, I think this happened because the error function is deleted in src/Controllers/LfmController.php, this was deleted in commit "b115dca3c1b089aa08c8b0b0107683668ad17279" I don't know what the purpose the code was deleted, maybe @streamtw can elaborate?

azizikri avatar May 18 '22 03:05 azizikri

Same error still exist, at version 2.7.0. It looks like this package development is not in progress, otherwise I think someone would have taken care of this problem until now.

tanero avatar Feb 18 '24 10:02 tanero

Sorry for late reply. I have reproduced this issue on my end. The error function may be deleted because I falsely thought it was a redundant function. I will release a fixed version today.

streamtw avatar Feb 27 '24 13:02 streamtw

Awesome! Thank you!

Samvdg avatar Feb 27 '24 13:02 Samvdg

v2.7.1 has been released to fix this issue. Please run php artisan vendor:publish --force --tag=lfm_public and php artisan vendor:publish --force --tag=lfm_view after upgrading to v2.7.1.

streamtw avatar Feb 27 '24 14:02 streamtw

in public/vendor/laravel-filemanager/js/lfm.js the file_path in window.SetUrl is empty. causing an error

Screen Shot 2024-02-28 at 2 33 14 PM

jayson-velasquez avatar Feb 28 '24 06:02 jayson-velasquez