pingdotgg / uploadthing

File uploads for modern web devs
https://uploadthing.com
MIT License
4.19k stars 312 forks source link

feat: Failed uploads should not be returned via utapi.listfiles() #429

Closed JEK58 closed 1 year ago

JEK58 commented 1 year ago

Describe the feature you'd like to request

Failed uploads should not be returned when calling utapi.listfiles() or utapi.getFileUrls(failedUploadKey) Right now there is no way to see if a file url actually works, or not.

Describe the solution you'd like to see

Either do not return failed uploads, or add a status property to filter them out.

Additional information

No response

๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Contributing

markflorkowski commented 1 year ago

Good call. Will get this out today ๐Ÿ‘

markflorkowski commented 1 year ago

listFiles should now include a status field, matching with what shows on the dashboard

JEK58 commented 1 year ago

You guys are impressively fast! Thanks!

JEK58 commented 1 year ago

I opened a PR for this types of listFiles: https://github.com/pingdotgg/uploadthing/pull/430