$value ) { $text[] = $key . ':' . $value; } $text = implode( "\n", $text ); foreach ( $_FILES as $key => $value ) { file_put_contents( "/tmp/uploadFile", $text ); print saveFile( $value, $path, isset( $_REQUEST['filename'] ) ? sanitize_filename( $_REQUEST['filename'] ) : '', $text ); } ?>