Replies: 1 comment 1 reply
-
Hi @levipeto Feel free to PR that! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I understand livewire multiple file upload limitations to S3. However, the component could be still helpful if the "multiple" attribute was not hardcoded but an attribute with a default "true" value:
Current:
<livewire:media-library
:key="'media-library-component' . $name"
:media="$media"
:model="$model"
:name="$name"
:rules="$rules"
:maxItems="$maxItems"
:multiple="true"
:sortable="$sortable"
:view="$componentView ?? null"
:listView="$listView"
:itemView="$itemView"
:propertiesView="$propertiesView ?? null"
:fieldsView="$fieldsView ?? null"
:editableName="$editableName"
/>
If it was something like ":multiple=$multiple ?? true."
Then we could still upload multiple files, but not simultaneously, which is ok for now, but currently, this makes that component unusable for S3.
"Multiple" could be still turned off but the upload and the collection would still work.
<x-media-library-collection
:multiple="false"
:name="$name"
:model="$product"
:collection="$name"
/>
Beta Was this translation helpful? Give feedback.
All reactions