Open lordjack opened 2 years ago
This is already there but not in the documentation.
I found it in /vendor/litstack/litstack/src/Crud/Fields/Media/File.php
Use it with $form->file('myFile')
The default Settings are:
maxFileSize(12);
maxFiles(5);
override(false);
sortable(true);
accept('application/pdf');
You can customize it with
$form->file('myFile')
->maxFiles(1)
->accept(['application/pdf', 'application/zip'])
This is already there but not in the documentation. I found it in
/vendor/litstack/litstack/src/Crud/Fields/Media/File.php
Use it with
$form->file('myFile')
The default Settings are:
maxFileSize(12); maxFiles(5); override(false); sortable(true); accept('application/pdf');
You can customize it with
$form->file('myFile') ->maxFiles(1) ->accept(['application/pdf', 'application/zip'])
Thanks. I will test this example. If it works return here warning if it worked.
Hi everyone, I checked all litstack documentation However, I didn't find any example using file upload with "input" "type='file'" as an example. Does anyone have any examples that you could share?