Is it difficult to display filesize by default for Upload? Currently you must use imagesizes #1072
Replies: 2 comments 3 replies
-
I am not sure why we don't add I think @denolfe and I can take a crack at adding those fields in all cases. Good call! Need to adjust this file: https://github.com/payloadcms/payload/blob/master/src/uploads/getBaseFields.ts#L103 |
Beta Was this translation helpful? Give feedback.
-
Sorry for bumping this thread, but I noticed that the dimensions fields have been added to the default uploadFields. I tested it with payload |
Beta Was this translation helpful? Give feedback.
-
If you don't set imagesizes, because we don't need clipping:

It would be nice to also return the width and height fields here.
There is a bug if you follow the documentation by setting null for imagesizes. #1068
Beta Was this translation helpful? Give feedback.
All reactions