-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
acceptedFileTypes should not let you pick another file type #157
Comments
Hi @awcodes I'm not sure if this one is totally fixed? I Was still able to select previously uploaded files when using the I was taking a look through the code for the curator panel component and saw that the <livewire:curator-panel
:accepted-file-types="$acceptedFileTypes"
:types="$acceptedFileTypes" // copy of the acceptedFileTypes
:disk-name="$diskName"
:directory="$directory"
:image-crop-aspect-ratio="$imageCropAspectRatio"
:image-resize-mode="$imageResizeMode"
:image-resize-target-width="$imageResizeTargetWidth"
:image-resize-target-height="$imageResizeTargetHeight"
:is-limited-to-directory="$isLimitedToDirectory"
:is-multiple="$isMultiple"
:max-items="$maxItems"
:max-width="$maxWidth"
:min-size="$minSize"
:max-size="$maxSize"
:modal-id="$modalId"
:path-generator="$pathGenerator"
:rules="$rules"
:selected="$selected ?? []"
:should-preserve-filenames="$shouldPreserveFilenames"
:state-path="$statePath"
:visibility="$visibility"
/> |
Are you on v2 or v3 of the plug-in? It does work on v2. Unless I'm misunderstanding what issue you're having. |
I'm using I just went ahead and created a test project using |
Ok. I'll get it corrected as soon as I can. Thank you. |
Thank you so much for the awesome plugin 👏👏 |
I have field with
acceptedFileTypes(['image/jpeg', 'image/png'])
and I can't upload any other file type, but I can pick any file from already uploaded. I can pick mp4 video for this field.The text was updated successfully, but these errors were encountered: