jeanbmar / payload-s3-upload

Send Payload CMS uploads to Amazon S3
MIT License
56 stars 9 forks source link

avoid reading sizes for non image files like pdf #12

Closed naquiuddin closed 1 year ago

naquiuddin commented 1 year ago

When image sizes are given in config, if I try to upload non image files like PDFs or Text files I get errors. This pull request fixes that.

jeanbmar commented 1 year ago

I didn't have in mind mixed upload collections, which are a very real requirement. Thank you for submitting this PR!