Formie - File Upload #2775
Unanswered
alexander-dal
asked this question in
General
Replies: 1 comment 1 reply
-
|
I think we're just inheriting the same settings an Assets field is Craft gets. Likely similar to craftcms/cms#1511
So while we can potentially look at swapping this to be extension-based, or something more specific, that's probably going to be a breaking change. For now, you could add a new 'extraFileKinds' => [
'images-only' => [
'label' => 'Images Only',
'extensions' => ['jpg', 'png']
],
], |
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.
-
Is it possible to restrict the file type more specifically than just selecting “Image”?
Ideally, we’d like to only allow certain image formats like JPG and PNG, and exclude others (e.g. SVG).
Is there a way to configure that?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions