Commit 67c1ac2a authored by Joe Hoyle's avatar Joe Hoyle
Browse files

Relative to content dir not abspath

parent bfefb4fc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ class S3_Uploads_Uploader {
	 */
	public function upload_file_to_s3( $file_path ) {

		$relative = str_replace( ABSPATH, '', $file_path );
		$relative = str_replace( WP_CONTENT_DIR, '', $file_path );

		try {
			$this->s3()->putObject(array(