Open zawaruddin opened 8 years ago
Are you on the last version? Did you publish the latest files?
i think yea, i pull it last week. can you explain me about "publish the latest files" ? i don't get it.
Did you run php artisan elfinder:publish
?
Also, try the dev-version, I've made some changes to the driver: "^0.3@dev"
yes, i run php artisan elfinder:publish
and try dev-version in other project with same config. But still did'nt show the thumbnail and show message "Undefined index: url" after upload files...
is something wrong with my configuration?
there's 'dir' index in your config/elfinder.php
'dir' => ['files'],
the value can be multiple array value or single value?
and now i get solution how to fix it....
i don't know, but in your config/elfinder.php, while i use Filesystem disks
'dir' => ['files'],
'disks' => [
'public' => ['URL' => asset('public/files'),
'alias' => 'My Documents' ]
],
it always return popup message "Undefined index: url" after upload file and thumbnail dont show.
But if i use dir
'dir' => [
[
'URL' => 'public/files',
'path' => str_replace(env('REAL_SYSTEM_PATH'), env('REAL_PUBLIC_PATH'), public_path()).'/files'
]
],
'disks' => [],
and editing showConnector function in ElfinderConnector.php
foreach ($dirs as $dir) {
$roots[] = [
'driver' => 'LocalFileSystem', // driver for accessing file system (REQUIRED)
'path' => public_path($dir), // path to files (REQUIRED)
'URL' => url($dir), // URL to files (REQUIRED)
'accessControl' => $this->app->config->get('elfinder.access') // filter callback (OPTIONAL)
];
}
became
foreach ($dirs as $dir) {
$roots[] = [
'driver' => 'LocalFileSystem', // driver for accessing file system (REQUIRED)
// let people define the "public path" in config/elfinder.php
'path' => $dir['path'], // path to files (REQUIRED)
'URL' => url($dir['URL']), // URL to files (REQUIRED)
'accessControl' => $this->app->config->get('elfinder.access') // filter callback (OPTIONAL)
];
}
it's work, no popup message, and it's display the thumbnail...
Thanks for your info @zawaruddin
I'm having the same problem but I'm using Amazon s3 and if I move driver, path and url from disks
to dir
I can't access the disk (volume) anymore.
Also it seems to me that the 'URL'
parameter is not handled properly when using disks
or I'm passing the wrong value because even if I remove it I still get the same error.
i have error after upload file, returning popup message "Undefined index: url", "Undefined index: hash"
also thumbnail doesn't display ....
my laravel project in "_laraza" folder, and my public in "laraza". can you help me?
this's my config/elfinder.php
and this's my config/filesystem.php for public disk