Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S3 key #74

Open
leosilberg opened this issue Dec 19, 2024 · 0 comments
Open

S3 key #74

leosilberg opened this issue Dec 19, 2024 · 0 comments

Comments

@leosilberg
Copy link

How can I get the key used to upload a file in PutObjectCommand?

app.post(
  "/",
  storage.single("image", {
    sign: {
      expiresIn: 60,
    },
  }),
  (c) => {
    signedURL = c.var.signedURLs.image || "";

// I need to save the key here

    return c.html(html`
      <a href="/">Back</a>
      <p>Image uploaded successfully</p>
      <code>${signedURL}</code>
    `);
  },
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant