-
Notifications
You must be signed in to change notification settings - Fork 295
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
Add accept method #166
Comments
You can define rule for validation if that's what you looking for: use Ebess\AdvancedNovaMediaLibrary\Fields\Images;
public function fields(Request $request)
{
return [
Images::make('Images', 'my_multi_collection')
->rules('mimes', 'jpeg,bmp,png')
];
} I have not tested it. |
Rules applies after form submission but i need add html accept attribute |
I think I'm having the same issue as @vasishakd . For example, setting |
@ebess If I make PR would you merge it? |
@pavlovpa4o go ahead. |
Hello @VeeeneX public function fields(Request $request) |
There is no way to limit file extensions on file selection dialog. It would be nice if you could use the accept method, to add html attribute accept.
The text was updated successfully, but these errors were encountered: