From 66985ce9466fa1e30d7bb14eb82c2a7c8579557d Mon Sep 17 00:00:00 2001 From: Ryan McCue Date: Wed, 5 Nov 2025 01:48:49 +0000 Subject: [PATCH] Add S3 Uploads for uploaded files Signed-off-by: Ryan McCue --- .config/constants.php | 5 ++++ composer.json | 3 ++- composer.lock | 53 ++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 59 insertions(+), 2 deletions(-) diff --git a/.config/constants.php b/.config/constants.php index 2192060..6718eff 100644 --- a/.config/constants.php +++ b/.config/constants.php @@ -11,5 +11,10 @@ define( 'AWS_SES_WP_MAIL_REGION', 'us-east-1' ); define( 'AWS_SES_WP_MAIL_USE_INSTANCE_PROFILE', true ); +// S3 Uploads configuration. +define( 'S3_UPLOADS_BUCKET', 'fairpm-site-production' ); +define( 'S3_UPLOADS_REGION', 'us-east-1' ); +define( 'S3_UPLOADS_USE_INSTANCE_PROFILE', true ); + // Root path for URL structure for Packages for Aspire Explorer. define( 'AE_ROOT', 'packages/' ); diff --git a/composer.json b/composer.json index b54465a..47540a5 100644 --- a/composer.json +++ b/composer.json @@ -34,7 +34,8 @@ "yoast/wordpress-seo": "*", "aspirepress/aspireexplorer": "^0.2", "fair/fair-plugin": "dev-main", - "ocean90/public-post-preview": "^3.0" + "ocean90/public-post-preview": "^3.0", + "humanmade/s3-uploads": "^3.0" }, "extra": { "installer-paths": { diff --git a/composer.lock b/composer.lock index e6edf2f..6564f83 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "b097ed3067818baf849a42615dcbeb59", + "content-hash": "2d594a69208261c0558253b19cb445ad", "packages": [ { "name": "afragen/git-updater", @@ -1236,6 +1236,57 @@ }, "time": "2020-01-10T21:55:59+00:00" }, + { + "name": "humanmade/s3-uploads", + "version": "3.0.11", + "source": { + "type": "git", + "url": "https://github.com/humanmade/S3-Uploads.git", + "reference": "237aef88fa15c3c7ac43b48d8cdf6e0d500326d4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/humanmade/S3-Uploads/zipball/237aef88fa15c3c7ac43b48d8cdf6e0d500326d4", + "reference": "237aef88fa15c3c7ac43b48d8cdf6e0d500326d4", + "shasum": "" + }, + "require": { + "aws/aws-sdk-php": "~3.18", + "composer/installers": "~1.0 || ^2.0" + }, + "require-dev": { + "humanmade/psalm-plugin-wordpress": "^1.0", + "pcov/clobber": "^2.0", + "phpunit/phpunit": "7.5", + "yoast/phpunit-polyfills": "^4.0" + }, + "type": "wordpress-plugin", + "autoload": { + "classmap": [ + "./inc" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "GPL-2.0+" + ], + "authors": [ + { + "name": "Human Made", + "homepage": "https://humanmade.com/" + } + ], + "description": "WordPress plugin to store uploads on S3", + "homepage": "https://github.com/humanmade/S3-Uploads", + "keywords": [ + "wordpress" + ], + "support": { + "issues": "https://github.com/humanmade/s3-uploads/issues", + "source": "https://github.com/humanmade/s3-uploads" + }, + "time": "2025-10-22T14:49:30+00:00" + }, { "name": "humanmade/wp-redis-predis-client", "version": "0.1.2",