uploadthing icon indicating copy to clipboard operation
uploadthing copied to clipboard

feat: Show a documentation example for basic CRUD operations using UTApi and Next AppDir

Open Elkjdsvn opened this issue 1 year ago • 3 comments

Describe the feature you'd like to request

Title is pretty self explanatory but it would be very nice to have the implementation of UTApi getFiles/listFiles/deleteFiles calls. As a very young dev I don't want to make too big mistakes and I'm scared of leaking something since the new AppDir model is really abstract on certain parts (i.e Server Actions)

Describe the solution you'd like to see

Just a few files showing an opinion from the maintainers on how to deal with it regarding the AppDir model

Additional information

No response

Elkjdsvn avatar Oct 25 '23 00:10 Elkjdsvn

Really like this idea, will probably try to take swing at it in the next week or two if nobody else jumps on it first!

markflorkowski avatar Oct 29 '23 02:10 markflorkowski

Nice !

If you've got some docs on how to do a clean PR for the current repo, I may give it a try too because I would like to contribute. I just don't want the lack of experience to make me submit something badly formatted or not following UploadThing's docs' best practices

Elkjdsvn avatar Oct 29 '23 13:10 Elkjdsvn

The only notes I would say are to follow conventional commits for naming your PR and, and include a good description.

Otherwise, take a look at the other items in /examples for an idea on how we typically do them.

Anything else we'll catch in code review 👍

markflorkowski avatar Oct 30 '23 18:10 markflorkowski