Commit 5242e46e authored by Joe Hoyle's avatar Joe Hoyle
Browse files

Support paths in S3_UPLOADS_BUCKET to mutliple sites can use the same S3 Bucket

parent 84436351
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ class S3_Uploads {
	}

	public function get_s3_url() {
		return 'https://' . $this->bucket . '.s3.amazonaws.com';
		return 'https://' . strtok( $this->bucket, '/' ) . '.s3.amazonaws.com' . substr( $this->bucket, strlen( strtok( $this->bucket, '/' ) ) );
	}

	public function get_original_upload_dir() {