Code Monkey home page Code Monkey logo

s3-file-manager's Introduction

AWS S3 File Upload and Management with PHP

This project provides a web interface for uploading files to an Amazon S3 bucket and managing them (listing, downloading, and deleting).

Requirements:

  1. PHP 7.4+ with AWS SDK for PHP v3 (AWS SDK for PHP Documentation).
  2. Composer (Composer Download).
  3. An AWS account with an S3 bucket.

Project Structure :

  1. config.php: Contains configuration settings and AWS S3 client initialization.
  2. delete.php: Handles file deletion from the S3 bucket.
  3. download.php: Manages file downloads from the S3 bucket.
  4. file_list.php: Displays a table of uploaded files with options to download or delete.
  5. index.php: Main entry point of the application. Includes file upload form and file listing.
  6. upload.php: Handles file upload to the S3 bucket.
  7. upload_form.php: Provides the HTML form for uploading files.

Setup:

  1. Clone this repository.
  2. Install dependencies using Composer:
composer install
  1. Update config.php with your AWS credentials (access key ID, secret access key, and region).
  2. Set the desired bucket name in config.php.
  3. Start a web server and point it to the project directory.

Usage:

  1. Visit the application in your web browser.
  2. Use the file upload form to select and upload files to the S3 bucket.
  3. Uploaded files will be listed in a table with options to download or delete.
  4. Click the download button to retrieve a file from the S3 bucket.
  5. Click the delete button to remove a file from the S3 bucket.

Additional Notes

  1. Ensure your AWS IAM user has sufficient permissions to perform S3 operations.
  2. Customize the appearance and behavior of the web interface as needed.

Contributing:

Contributions are welcome! Feel free to open an issue or submit a pull request for any improvements or features you'd like to see added.

s3-file-manager's People

Contributors

sanjay-gangishetty avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.