Git Product home page Git Product logo

filemanager's Introduction

FileManager

Latest Version on Packagist Total Downloads Build Status StyleCI

Backpack admin interface for files and folder, using barryvdh/laravel-elfinder. This package literally just:

  • creates a public/uploads folder;
  • installs barryvdh/laravel-elfinder;
  • publishes an elFinder config and view, for elFinder to play nice with Backpack;
  • adds a menu item to the sidebar;

https://backpackforlaravel.com/uploads/docs-4-0/media_library.png

Installation

From your command line, require the package (this will also require barryvdh/laravel-elfinder):

composer require backpack/filemanager

Then run the install process:

php artisan backpack:filemanager:install

That's it. Hit refresh in your admin panel, and you'll find a new sidebar item pointing to the File Manager.

Usage

You can use elFinder in Backpack:

Upgrade

To upgrade from v2 to v3 of this package:

# remove the published blade views
rm -rf resources/views/vendor/elfinder

# publish the new blade views
php artisan backpack:filemanager:install

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

MIT. Please see the license file for more information.

filemanager's People

Contributors

arb362 avatar egyjs avatar jcastroa87 avatar jnoordsij avatar mahasadhu avatar promatik avatar pxpm avatar stylecibot avatar tabacitu avatar tmtung144 avatar treckstar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

filemanager's Issues

Mixed Content: This request has been blocked; the content must be served over HTTPS.

Hello , I am getting error when trying to insert image using TinyMCE and Elfinder on server after set up https and domain.
Look like the elfinder still use old server ip address instead of new domain .
"require": {
"php": "^8.1",
"backpack/crud": "^6.6",
"backpack/filemanager": "^3.0",
"backpack/permissionmanager": "^7.2",
"backpack/theme-tabler": "^1.2",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^10.10",
"laravel/sanctum": "^3.3",
"laravel/tinker": "^2.8",
"maatwebsite/excel": "^3.1"
}

Screen Shot 2024-05-17 at 1 35 21 PM

I am not sure the issue here, I am using nginx as proxy

S3 storage

Hi) help me please)
How can I use s3 storage with this package? Thank you)

Do not show all the uploaded images from s3

Hi,
Is it possible, do not show all the images?
Actually problem is that. I have uploaded all the images on amazon s3 and when fetch on file manager, it is taking too much time to load it. Is it possible to show some images and on scroll display images according to limit?

No hint path defined for [backpack] error in all pages

HI, I just realized that I get two errors each time I load any page.

[2023-08-06 10:24:09] local.ERROR: No hint path defined for [backpack]. {"view":{"view":"/var/www/html/resources/views/errors/layout.blade.php","data":[]},"exception":"[object] (Spatie\LaravelIgnition\Exceptions\ViewException(code: 0): No hint path defined for [backpack]. at /var/www/html/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php:112)
[stacktrace]
#0 /var/www/html/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php(90): Illuminate\View\FileViewFinder->parseNamespaceSegments()
#1 /var/www/html/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php(76): Illuminate\View\FileViewFinder->findNamespacedView()
#2 /var/www/html/vendor/laravel/framework/src/Illuminate/View/Factory.php(137): Illuminate\View\FileViewFinder->find()
#3 /var/www/html/resources/views/errors/layout.blade.php(57): Illuminate\View\Factory->make()
#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(124): require('...')
#5 /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(125): Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}()
#6 /var/www/html/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(58): Illuminate\Filesystem\Filesystem->getRequire()
#7 /var/www/html/vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php(69): Illuminate\View\Engines\PhpEngine->evaluatePath()
#8 /var/www/html/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(72): Livewire\LivewireViewCompilerEngine->evaluatePath()
#9 /var/www/html/vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php(35): Illuminate\View\Engines\CompilerEngine->get()
#10 /var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php(195): Livewire\LivewireViewCompilerEngine->get()
#11 /var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php(178): Illuminate\View\View->getContents()
#12 /var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php(147): Illuminate\View\View->renderContents()
#13 /var/www/html/resources/views/errors/404.blade.php(16): Illuminate\View\View->render()
#14 /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(124): require('...')
#15 /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(125): Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}()
#16 /var/www/html/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(58): Illuminate\Filesystem\Filesystem->getRequire()
#17 /var/www/html/vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php(69): Illuminate\View\Engines\PhpEngine->evaluatePath()
#18 /var/www/html/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(72): Livewire\LivewireViewCompilerEngine->evaluatePath()
#19 /var/www/html/vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php(35): Illuminate\View\Engines\CompilerEngine->get()
#20 /var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php(195): Livewire\LivewireViewCompilerEngine->get()
#21 /var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php(178): Illuminate\View\View->getContents()
#22 /var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php(147): Illuminate\View\View->renderContents()
#23 /var/www/html/vendor/laravel/framework/src/Illuminate/Http/Response.php(69): Illuminate\View\View->render()
#24 /var/www/html/vendor/laravel/framework/src/Illuminate/Http/Response.php(35): Illuminate\Http\Response->setContent()
#25 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(57): Illuminate\Http\Response->__construct()
#26 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(87): Illuminate\Routing\ResponseFactory->make()
#27 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(658): Illuminate\Routing\ResponseFactory->view()
#28 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(586): Illuminate\Foundation\Exceptions\Handler->renderHttpException()
#29 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(492): Illuminate\Foundation\Exceptions\Handler->prepareResponse()
#30 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(409): Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse()
#31 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(51): Illuminate\Foundation\Exceptions\Handler->render()
#32 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(143): Illuminate\Routing\Pipeline->handleException()
#33 /var/www/html/vendor/livewire/livewire/src/DisableBrowserCache.php(19): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#34 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Livewire\DisableBrowserCache->handle()
#35 /var/www/html/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php(66): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#36 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Barryvdh\Debugbar\Middleware\InjectDebugbar->handle()
#37 /var/www/html/vendor/laravel/vapor-core/src/Http/Middleware/ServeStaticAssets.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#38 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Laravel\Vapor\Http\Middleware\ServeStaticAssets->handle()
#39 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#40 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
#41 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle()
#42 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#43 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
#44 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle()
#45 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#46 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle()
#47 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#48 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle()
#49 /var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#50 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle()
#51 /var/www/html/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#52 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle()
#53 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#54 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then()
#55 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
#56 /var/www/html/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle()
#57 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/resources/server.php(16): require_once('...')
#58 {main}

My versions:

PHP VERSION:

PHP 8.2.7 (cli) (built: Jun 8 2023 15:27:40) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.7, Copyright (c) Zend Technologies
with Zend OPcache v8.2.7, Copyright (c), by Zend Technologies
with Xdebug v3.2.1, Copyright (c) 2002-2023, by Derick Rethans

LARAVEL VERSION:

10.17.1.0

BACKPACK PACKAGE VERSIONS:

backpack/basset: 1.1.1
backpack/crud: 6.1.5
backpack/devtools: 2.0.3
backpack/editable-columns: 3.0.2
backpack/filemanager: 3.0.3
backpack/generators: v4.0.2
backpack/permissionmanager: 7.0.0
backpack/pro: 2.0.10
backpack/theme-tabler: 1.0.8

elfinder shows as Full page without the admin theme

The file manager menu item leads to a full-page
without the admin theme.

it's work fine as popup page in the NewsCRUD, but as stand alone it shows as this:

Screen Shot 2020-12-20 at 3 32 33 PM

I think it's because I copied the resources/views from Barryvdh\Elfinde
php artisan vendor:publish --provider='Barryvdh\Elfinder\ElfinderServiceProvider' --tag=views

what is the current command to copy the views from FileManager

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255 Installation failed, reverting ./composer.json to its original content.

Hi!
I am testing backpack 4 in laravel 7.

I got the following error when executing:
$ composer require backpack/filemanager

The answer:

$ composer require backpack/filemanager
Using version ^1.0 for backpack/filemanager
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 6 installs, 0 updates, 0 removals
  - Installing psr/cache (1.0.1): Loading from cache
  - Installing league/flysystem-cached-adapter (1.0.9): Loading from cache
  - Installing studio-42/elfinder (2.1.56): Loading from cache
  - Installing barryvdh/elfinder-flysystem-driver (v0.2.1): Loading from cache
  - Installing barryvdh/laravel-elfinder (v0.4.5): Loading from cache
  - Installing backpack/filemanager (1.0.0): Downloading (100%)
league/flysystem-cached-adapter suggests installing ext-phpredis (Pure C implemented extension for PHP)
studio-42/elfinder suggests installing kunalvarma05/dropbox-php-sdk (VolumeDriver `Dropbox`2 require `kunalvarma05/dropbox-php-sdk.)
studio-42/elfinder suggests installing google/apiclient (VolumeDriver GoogleDrive require `google/apiclient:^2.0.)
studio-42/elfinder suggests installing nao-pon/flysystem-google-drive (require in GoogleDrive network volume mounting with Flysystem.)
barryvdh/elfinder-flysystem-driver suggests installing league/glide (1.x to display images through Glide)
Writing lock file
Generating optimized autoload files
ocramius/package-versions: Generating version class...
ocramius/package-versions: ...done generating version class
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   Symfony\Component\ErrorHandler\Error\FatalError

  Trait 'Backpack\CRUD\app\Console\Commands\Traits\PrettyCommandOutput' not found

  at C:\xampp\htdocs\dev\componentes\laravel\admin\backpack-laravel-7\vendor\backpack\filemanager\src\Console\Commands\Install.php:11
     7| use Symfony\Component\Process\Exception\ProcessFailedException;
     8| use Symfony\Component\Process\Process;
     9| use Backpack\CRUD\app\Console\Commands\Traits\PrettyCommandOutput;
    10|
  > 11| class Install extends Command
    12| {
    13|     use PrettyCommandOutput;
    14|
    15|     protected $progressBar;
PHP Fatal error:  Trait 'Backpack\CRUD\app\Console\Commands\Traits\PrettyCommandOutput' not found in C:\xampp\htdocs\dev\componentes\laravel\admin\backpack-laravel-7\vendor\backpack\filemanager\src\Console\Commands\Install.php on line 11


   Whoops\Exception\ErrorException

  Trait 'Backpack\CRUD\app\Console\Commands\Traits\PrettyCommandOutput' not found

  at C:\xampp\htdocs\dev\componentes\laravel\admin\backpack-laravel-7\vendor\backpack\filemanager\src\Console\Commands\Install.php:11
     7| use Symfony\Component\Process\Exception\ProcessFailedException;
     8| use Symfony\Component\Process\Process;
     9| use Backpack\CRUD\app\Console\Commands\Traits\PrettyCommandOutput;
    10|
  > 11| class Install extends Command
    12| {
    13|     use PrettyCommandOutput;
    14|
    15|     protected $progressBar;

  1   C:\xampp\htdocs\dev\componentes\laravel\admin\backpack-laravel-7\vendor\filp\whoops\src\Whoops\Run.php:408
      Whoops\Run::handleError("Trait 'Backpack\CRUD\app\Console\Commands\Traits\PrettyCommandOutput' not found", "C:\xampp\htdocs\dev\componentes\laravel\admin\backpack-laravel-7\vendor\backpack\filemanager\src\Console\Commands\Install.php")

  2   [internal]:0
      Whoops\Run::handleShutdown()
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255

Installation failed, reverting ./composer.json to its original content.

Elfinder should update to new version

hello,

from elfinder : WARNING: IF YOU HAVE OLDER (IN PARTICULAR 2.1.62 OR EARLIER) VERSIONS OF ELFINDER ON PUBLIC SERVERS, IT MAY CAUSE SERIOUS DAMAGE TO YOUR SERVER AND VISITED USER. YOU SHOULD UPDATE TO THE LATEST VERSION OR REMOVE IT FROM THE SERVER.

in package :

    {{-- elFinder JS (REQUIRED) --}}
    @bassetArchive('https://github.com/Studio-42/elFinder/archive/refs/tags/2.1.62.tar.gz', 'elfinder-2.1.62')
    @basset('elfinder-2.1.62/elFinder-2.1.62/js/elfinder.min.js')

    {{-- elFinder translation (OPTIONAL) --}}
    @if($locale)
    @basset('https://cdnjs.cloudflare.com/ajax/libs/elfinder/2.1.62/js/i18n/elfinder.'.$locale.'.min.js')
    @endif

changing File Manager to Files

In all the blade templates there's trans('backpack::crud.file_manager'), which is showing up as File Manager. I'd lik to change that to Files. To that end I could change the appropriate entry in vendor/backpack/crud/src/resources/lang/en/crud.php but I'd rather not since any changes I do in vendor/ will be blown away if I do composer update and, since that directory is in my .gitignore wouldn't be shared with anyone else anyway.

Consequently, I thought that if I copied that file to my resources/ directory that that'd do the trick but it is unclear to me where I'd copy that file. I tried a number of places without success. Here's a non comprehensive list of the directories I tried copying it to:

  • resources/lang/vendor/backpack/crud/en/crud.php
  • resources/lang/en/vendor/backpack/crud/crud.php

Any ideas?

Missing Icons/Font

Problem
elFinder Material Theme recently updated to v3.0.0 and in doing so they moved the font from the icons subfolder to the font folder.

image
See this commit
As a result when basset caches everything it misses this and you receive a 404 error and no icons.

Solution
The common_styles.blade will need updated.

Oddly enough, Basset still caches the font file from jsdelivr. I'm assuming that because there is not a specific version specified in the url jsdelivr serves up the last version that has that file?

Show thumbnail in form

Hi,
Is it possible to show the thumbnail of the selected image in the form?

The filemanager works fine, but it only shows the image-location

CRUD::addField([
    'name'  => 'image',
    'label' => 'Image',
    'type'  => 'browse',
]);

Doesn't seem to work with Tabler theme in v6

I am on CRUD (and PRO) v6, and FileManager v3.0.2, and I did re-run the php artisan backpack:filemanager:install command. Despite which, in the Tabler theme I am consistently getting this error:

image

Could use some advice, @tabacitu !

FileManager path parameter based on model id

In the application, the publication of posts occurs according to the following scenario:

The user creates an entity, and first uploads pictures to the posts/{post_id} folder. Next, the admin must select a preview image from these pictures and publish the post.

The 'preview_image' field in the backpack admin panel uses the 'browse' field type. Is there any way to tell FileManager the folder to open based on a specific model id? (eg posts/139)

php artisan backpack:version:

PHP VERSION:

PHP 8.2.13 (cli) (built: Nov 21 2023 09:55:59) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.13, Copyright (c) Zend Technologies
with Xdebug v3.2.1, Copyright (c) 2002-2023, by Derick Rethans
with Zend OPcache v8.2.13, Copyright (c), by Zend Technologies

LARAVEL VERSION:

v9.52.16@082345d76fc6a55b649572efe10b11b03e279d24

BACKPACK PACKAGE VERSIONS:

backpack/crud: 5.6.1
backpack/devtools: 1.3.5
backpack/filemanager: 2.0.1
backpack/generators: v3.3.17
backpack/langfilemanager: 4.1.0
backpack/logmanager: v4.0.11
backpack/permissionmanager: 6.0.17
backpack/pro: 1.6.6
backpack/settings: 3.1.0

Steps to get new elFinder version

This package is just a wrapper around barryvdh/laravel-elfinder, which is just a wrapper around Studio-42/elFinder. In v2.1.62 this package has received an important security fix.

We have bumped the version in https://github.com/Laravel-Backpack/FileManager/releases/tag/3.0.6 to get that fix too. But since the version is inside blade files that are published, to properly get the new version you need to do:

composer update backpack/filemanager

# remove the published blade views
rm -rf resources/views/vendor/elfinder

# publish the new blade views
php artisan backpack:filemanager:install

# clear the basset cache and cache all assets again
php artisan basset:fresh

# or, if you don't want to do the above, just cache the new asset:
php artisan basset:cache

You can see more about the vulnerability here. As specified there, "This vulnerability can be exploited by allowing untrusted users to write to the local file system.". We believe most of the developers that use our package use it for ADMINS, not USERS, so they should be safe. But you should do the steps above nonetheless.

Hope it helps!

Add support for BackPack v6

Encountered while testing out the new v6 beta. Currently no version (including the 6.x-dev version) supports the new v6 beta. It would be nice to have a v6-compatible version for testing this when running the beta, to ensure everything works fine ;)

Incorrect path

Hey.
I ask for help, I can not solve the problem.

  1. I have S3 storage.
  2. I upload the file test.txt to the root of S3 storage
  3. I get the path /s3/test.txt
  4. I save to db "/s3/test.txt"
  5. I create a link to a file (Storage::url()) "https://s3.****************/s3/test.txt"
  6. But my file is in the root of the storage "https://s3.****************/test.txt"
  7. How to remove "/s3" from the path to the file that is saving to the database?
    Thank you.

Can we take over the elfinder's view path?

Right now what we do is that we publish blade files in the elfinder view path. In order for elfinder to use our custom views. But this creates problems... upgrading is difficult. Because those files need to be deleted and re-published.

Isn't there a way for us to "take over" that blade namespace? And point it to our blade views in the package?

support for Azure storage or AWS S3

I wonder if there is support to store files on a cloud like AWS S3 or / Azure Storage rather then local ? If not .. can you provide an advise where to start looking . Thanks

S3 uploaded files are private by default

Hi, i have been fighting with this error and couldnt find a solution yet, when trying to upload files to s3, it all works fine, only that files are set as private, not accesible via url.

Looks like the fix was merged to master but not yet reflected in the package: barryvdh/elfinder-flysystem-driver#72

If anyone has a workaround for this, greatly appreciated!
Thanks

How to retrieve thumbnail path in the view?

Hi, I am using lazyload for loading the big image in the front end, and I saw the elfinder is auto-generating the thumbnail on the backend, may I know how do I retrieve the thumbnail path and show it to the front end?

ElFinder callback error

I just install backpack in a fresh installation, but when I try use browse_multiple it throws an exception

Error in `getFileCallback`.
window.parent.processSelectedFile is not a function

This exception is thrown after I select a file.

https://imgur.com/a/QgAYKrf

404 after fresh install

I just added FileManager to my project with the steps described in the ReadMe.
But when I navigate to /admin/elfinder I simply get a 404 error.

I could not find anything on what I am doing wrong. I haven't modified any configs and Backpack is running fine (also with standard config).

I'm using Laravel 9.19, with backpack CRUD 5.1.3 and FileManager 2.0

Improvement on `install` command

In file https://github.com/Laravel-Backpack/FileManager/blob/master/src/Console/Commands/Install.php line 59

        $this->line(' Publishing elFinder assets');
        $this->executeProcess(['php', 'artisan', 'elfinder:publish']);

It's better use executeArtisanProcess instead of executeProcess, for there exists differences between environments of users, the command php may refer to another bin file than the running one.

Improvement:

        $this->executeArtisanProcess('elfinder:publish');

Route [login] not defined.

after clicking the side menu item of "File Manager"
this error shown: Route [login] not defined.

more details: https://flareapp.io/share/Bm01xkDP#F42

What I did

after following the Installation steps
the "File Manager" page was giving 404 error

I changed the config/elfinder.php

from

'route' => [
  'prefix' => 'elfinder',
  'middleware' => array('web', 'auth'), //Set to null to disable middleware filter
],

to

'route' => [
    'prefix' => config('backpack.base.route_prefix', '/admin') . '/elfinder',
    'middleware' => array('web', 'auth'), //Set to null to disable middleware filter
],

It finds the page but, Now it gives me the error: Route [login] not defined.
all details: https://flareapp.io/share/Bm01xkDP#F42

Laravel 8, PHP 8

installing only:

"backpack/crud": "4.1.*",
"backpack/filemanager": "^1.1",
"backpack/menucrud": "^2.0",
"backpack/newscrud": "^4.0",
"backpack/pagemanager": "^3.0",
"backpack/permissionmanager": "^6.0",
"backpack/settings": "^3.0",
"barryvdh/laravel-elfinder": "^0.4.7",

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.