{"id":22776282,"url":"https://github.com/gndx/react-aws-s3-uploader","last_synced_at":"2025-04-15T12:11:31.044Z","repository":{"id":34987554,"uuid":"194484318","full_name":"gndx/react-aws-s3-uploader","owner":"gndx","description":"It provides an easy-to configure component to Uploading Photos to Amazon S3 from your React project.","archived":false,"fork":false,"pushed_at":"2023-01-04T03:19:50.000Z","size":1970,"stargazers_count":16,"open_issues_count":14,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-28T18:18:38.251Z","etag":null,"topics":["aws","react","s3","uploader"],"latest_commit_sha":null,"homepage":"https://arepa.dev","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gndx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-30T06:43:13.000Z","updated_at":"2024-03-25T18:18:42.000Z","dependencies_parsed_at":"2023-01-15T11:32:37.085Z","dependency_job_id":null,"html_url":"https://github.com/gndx/react-aws-s3-uploader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gndx%2Freact-aws-s3-uploader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gndx%2Freact-aws-s3-uploader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gndx%2Freact-aws-s3-uploader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gndx%2Freact-aws-s3-uploader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gndx","download_url":"https://codeload.github.com/gndx/react-aws-s3-uploader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229277739,"owners_count":18048094,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","react","s3","uploader"],"created_at":"2024-12-11T19:09:12.101Z","updated_at":"2024-12-11T19:09:12.646Z","avatar_url":"https://github.com/gndx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-aws-s3-uploader\n\nIt provides an easy-to configure component to Uploading Photos to Amazon S3 from your React project.\n\nBased on this documentation:\n[Uploading Photos to Amazon S3 from a Browser\"](https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/s3-example-photo-album.html)\n\n![React](https://raw.githubusercontent.com/arepa-dev/reactAWSUploader/master/react-aws-s3-uploader.gif)\n\n\n# Install\n\n```npm\nnpm install react-aws-s3-uploader --save\n```\n\nBe sure to include the --save option to add this as a dependency in your application's package.json\n\n# Usage\n\n```js\nimport React, { Component } from 'react';\nimport S3Uploader from 'react-aws-s3-uploader'; // import the component\n\nclass App extends Component {\n\n  state = {\n    file: '',\n  }\n\n  handleFile = (file) =\u003e {\n    this.setState({\n      file\n    });\n  }\n\n  render() {\n    return (\n      \u003cS3Uploader\n        albumBucketName=\"Bucket_Name\" // Bucket Name\n        IdentityPoolId=\"IdentityPool_Id\" // Identity Pool Id\n        handleFile={this.handleFile}\n      /\u003e\n    );\n  }\n}\n\nexport default App;\n```\n\n# Options\n\n### buttonName\nName of button, default is \"Upload File\".\n\n### bucketRegion\nThe bucket region of AWS.\n\n### albumBucketName\nName of bucket where the files are stored.\n\n### IdentityPoolId\nAmazon Cognito identity pools provide temporary AWS credentials for users who are guests (unauthenticated) and for users who have been authenticated and received a token. An identity pool is a store of user identity data specific to your account. More info: [Using Identity Pools](https://docs.aws.amazon.com/cognito/latest/developerguide/identity-pools.html)\n\n### handleFile\nfuntion to return the url of the file stored in s3.\n\n## Example:\n\n```js\n  \u003cS3Uploader\n    buttonName=\"Upload File\"\n    bucketRegion=\"us-east-1\"\n    albumBucketName=\"arepa\"\n    IdentityPoolId=\"us-east-1:2fc911ef-0679\"\n    handleFile={this.handleFile}\n  /\u003e\n```\n\n# Demo\nCheck here: [react-aws-s3-uploader](https://arepa-dev.github.io/reactAWSUploader/)\n\n# Contributing\nIf someone wants to add or improve something, I invite you to collaborate directly in this repository: [react-mailchimp-form](https://github.com/gndx/react-aws-s3-uploader)\n\n# License\nReact-mailchimp-form is released under the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgndx%2Freact-aws-s3-uploader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgndx%2Freact-aws-s3-uploader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgndx%2Freact-aws-s3-uploader/lists"}