Skip to content

Commit

Permalink
added file upload gif
Browse files Browse the repository at this point in the history
  • Loading branch information
davincios committed Sep 3, 2023
1 parent e75d961 commit 5458914
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,14 @@ export default async function handler(req, res) {

### 🎉 Step 5. Upload file and finish!

- Add the environment variables to your .env.local file for the bucket name and region. You can copy them from the Netrunner console.
- Add the environment variables to your .env.local file for the bucket name and region. You can copy them from the Netrunner console.

- Run your app and or use the [example](https://github.com/netrunnerhq/nextjs-aws-s3/tree/main/example) code in this repository if convenient.

- Click the upload button to select a test image. The file should upload correctly!


<p align="center">
<img src="./docs/logo/file-upload-completed.png" alt="Netrunner demo filed upload completed" height="360px">
<img src="./docs/logo/gifs/file-upload.gif" alt="Netrunner file upload gif" width="80%">
</p>

## 🦾 About Netrunner
Expand Down
Binary file added docs/logo/gifs/file-upload.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 0 additions & 4 deletions example/pages/api/generateImgUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,6 @@ export default async function handler(
) {
const { objectKey, requestType } = req.body;

console.log("[getPresignedUrl.ts] req.body", {
reqBody: req.body,
});

if (!objectKey) {
res.status(400).json({ error: "Object key is required" });
return;
Expand Down

0 comments on commit 5458914

Please sign in to comment.