Closed Choco-milk-for-u closed 2 weeks ago
Latest commit: 9dd13ec331fd63b57b5577ef0b1902a1edaa1e38
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
docs-uploadthing | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 5, 2024 0:34am |
The changes in this pull request focus on improving the documentation for uploading files to UploadThing. The primary update involves modifying the code snippet that calculates the expiration time for signed URLs, shifting from a Unix timestamp format to a millisecond format. Additional refinements have been made to enhance readability and structure, including the incorporation of notes and warnings to assist users in the upload process.
File Path | Change Summary |
---|---|
docs/src/app/(docs)/uploading-files/page.mdx | Updated code snippet for expiration time calculation from Unix timestamp to milliseconds; improved documentation clarity and structure with added notes and warnings. |
In the land of code where rabbits play,
Documentation blooms, brightening the day.
Expiration times now tick in a breeze,
With notes and warnings, we aim to please.
Hopping through changes, clarity we seek,
For every upload, the guidance we speak! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
format pls
format pls
hello, should i just put it all in Math.floor?
run pnpm format
from root
run
pnpm format
from root
that was awkward, sorry about that
It seems that that V7 upload to ingest fails when
expires
parameter is in seconds. UT can not verify the URL. So I changed the docs's default example ofexpire parameter
toDate.now() + (60 * 60 * 1000)
.Summary by CodeRabbit