Open rezahmady opened 2 months ago
Hello @rezahmady
I try this today with this version:
### PHP VERSION:
8.3.10
### PHP EXTENSIONS:
Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dba, dom, hash, FFI, fileinfo, filter, ftp, gd, gettext, gmp, json, iconv, intl, SPL, ldap, mbstring, session, standard, odbc, pcntl, exif, mysqlnd, PDO, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, random, readline, Reflection, mysqli, shmop, SimpleXML, soap, sockets, sodium, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, Zend OPcache
### LARAVEL VERSION:
11.21.0.0
### BACKPACK PACKAGE VERSIONS:
backpack/basset: 1.3.6
backpack/crud: 6.7.33
backpack/devtools: 3.1.6
backpack/generators: v4.0.5
backpack/pro: 2.2.14
backpack/theme-coreuiv2: 1.2.5
backpack/theme-tabler: 1.2.12
Filesystem
'stg1' => [
'driver' => 'ftp',
'host' => 'test.rebex.net',
'username' => 'demo',
'password' => 'password',
'url' => 'https://bp.test/uploads'
],
Controller
CRUD::field([
'name' => 'upload',
'label' => 'Photos',
'type' => 'upload',
'withFiles' => [
'disk' => 'stg1',
'path' => 'videos',
],
'fake' => true,
]);
And i get the url
https://domain.test/uploads/videos/File.txt
As i understand this is working normal now.
Let me know if work for you.
Cheers.
Bug report
What I did
my disk :
field :
What I expected to happen
download link must be :
What happened
When I set a disk other than public, the path value set in the upload field is used twice in the download link.
download link :
What I've already tried to fix it
this is your code what id prefix ??
I set prefix value to '' or '/' but it didn't work
Is it a bug in the latest version of Backpack?
After I run
composer update backpack/crud
the bug... is it still there?Backpack, Laravel, PHP, DB version
When I run
php artisan backpack:version
the output is: