Feature Request: Allow hasMany on an upload field #130
Replies: 7 comments
-
Hey @mo7orh3ad — this is actually just an error with the docs. Uploads are not meant to support multiple, but this could potentially be a future enhancement if you would find value out of it. If you want to support multiple uploads, you could nest an Thoughts? |
Beta Was this translation helpful? Give feedback.
-
Hi @jmikrut, thanks for getting back - using an array field would have been my next approach. I agree, it would be great if this enhancement would find its way into a future release. |
Beta Was this translation helpful? Give feedback.
-
Docs have been updated. We'll keep this one open for now until we publish our roadmap—at which time we will be moving all enhancement issues to the Roadmap instead of tracking them here. |
Beta Was this translation helpful? Give feedback.
-
Converted from an issue to a Feature Request discussion thread. |
Beta Was this translation helpful? Give feedback.
-
Would also like to see this, it's a very common use-case to be able to select multiple images and reorder them (galleries, sliders, etc.), using an |
Beta Was this translation helpful? Give feedback.
-
Hi, I'd like to know what is the status of this feature request ? I want to contribute to this feature as it's something I need for my project. Best regard |
Beta Was this translation helpful? Give feedback.
-
+1 for this feature. On top of the improved UX i think it makes sense too in terms of api/json structure, because a uploads field in basically a relationship field with a different UI and some extra settings, right? |
Beta Was this translation helpful? Give feedback.
-
Bug Report
hasMany does not seem to be assignable to to the field type "upload".
Expected Behavior
According to the docs (https://payloadcms.com/docs/fields/upload) hasMany should be available for the uploads field.
Current Behavior
Error: Object literal may only specify known properties, and 'hasMany' does not exist in type 'UploadField'.
Detailed Description
Beta Was this translation helpful? Give feedback.
All reactions