This project provides a web interface for uploading files to an Amazon S3 bucket and managing them (listing, downloading, and deleting).
- PHP 7.4+ with AWS SDK for PHP v3 (AWS SDK for PHP Documentation).
- Composer (Composer Download).
- An AWS account with an S3 bucket.
- config.php: Contains configuration settings and AWS S3 client initialization.
- delete.php: Handles file deletion from the S3 bucket.
- download.php: Manages file downloads from the S3 bucket.
- file_list.php: Displays a table of uploaded files with options to download or delete.
- index.php: Main entry point of the application. Includes file upload form and file listing.
- upload.php: Handles file upload to the S3 bucket.
- upload_form.php: Provides the HTML form for uploading files.
- Clone this repository.
- Install dependencies using Composer:
composer install
- Update
config.php
with your AWS credentials (access key ID, secret access key, and region). - Set the desired bucket name in
config.php
. - Start a web server and point it to the project directory.
- Visit the application in your web browser.
- Use the file upload form to select and upload files to the S3 bucket.
- Uploaded files will be listed in a table with options to download or delete.
- Click the download button to retrieve a file from the S3 bucket.
- Click the delete button to remove a file from the S3 bucket.
- Ensure your AWS IAM user has sufficient permissions to perform S3 operations.
- Customize the appearance and behavior of the web interface as needed.
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.