Commit 73c1bc26 authored by Ryan McCue's avatar Ryan McCue Committed by GitHub
Browse files

Merge pull request #140 from davidlawson/fix-upload-tmp-location

Fixing temporary upload location
parents 0275462e 88b9319c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -243,7 +243,7 @@ class S3_Uploads {
	 * @return string
	 */
	public function copy_image_from_s3( $file ) {
		$temp_filename = wp_tempnam( $file, 's3-uploads' );
		$temp_filename = wp_tempnam( $file, WP_CONTENT_DIR . '/s3-uploads/' );
		copy( $file, $temp_filename );
		return $temp_filename;
	}