Commit ab1a3db6 authored by Japh's avatar Japh Committed by GitHub
Browse files

Merge pull request #156 from humanmade/change-temp-dir

Change temporary directory to the default
parents 73c1bc26 81ac755c
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, WP_CONTENT_DIR . '/s3-uploads/' );
		$temp_filename = wp_tempnam( $file );
		copy( $file, $temp_filename );
		return $temp_filename;
	}