mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-08 22:51:30 -07:00
updates to uuids to be consistent
This commit is contained in:
@@ -64,7 +64,7 @@ export const imageRoutes = new Hono<App>({ strict: false })
|
||||
// The `img` worker serves it back by that key (slashes and all), which is the
|
||||
// returned ImageName.
|
||||
const datePrefix = new Date().toISOString().slice(0, 10) + '/'
|
||||
const name = datePrefix + crypto.randomUUID().replace(/-/g, '') + extension
|
||||
const name = datePrefix + crypto.randomUUID() + extension
|
||||
await c.env.IMAGES.put(name, await file.arrayBuffer(), {
|
||||
httpMetadata: { contentType: file.type || 'image/jpeg' },
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user