Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

您好,这边 如何把 url 路径 下划线 _ 改成 / #19

Open
asjianghang123 opened this issue Oct 21, 2019 · 2 comments
Open

您好,这边 如何把 url 路径 下划线 _ 改成 / #19

asjianghang123 opened this issue Oct 21, 2019 · 2 comments

Comments

@asjianghang123
Copy link

file_201910_87785a755a0ebafe18015f5d68b46f7c.jpg
改成: file/2019/8875 从哪个地方改啊.

@DianWoung
Copy link
Member

file_201910_87785a755a0ebafe18015f5d68b46f7c.jpg
改成: file/2019/8875 从哪个地方改啊.

请问使用的是哪个版本?这个一般是配置问题,需要确保aetherupload.php配置文件里有默认的file资源分组。

@baykier
Copy link

baykier commented Apr 5, 2020

使用laravel-admin 的 Form 回调,

$form->saving(function(Form $form){

$form->file_url = str_replace('_','/',$form->file_url);

})

或者使用官方函数来
https://github.com/peinhu/AetherUpload-Laravel/blob/master/src/SavedPathResolver.php#L13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants