Skip to content

Commit 2de13b5

Browse files
sophiethekingCopilotlabudislukewar
authored
Add versioning to "Attaching files" (#57293)
Co-authored-by: Copilot <[email protected]> Co-authored-by: Tadas Labudis <[email protected]> Co-authored-by: Lukasz Warchol <[email protected]>
1 parent cc09ee6 commit 2de13b5

File tree

1 file changed

+26
-15
lines changed

1 file changed

+26
-15
lines changed

content/get-started/writing-on-github/working-with-advanced-formatting/attaching-files.md

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ The maximum file size is:
5757
5858
## Supported file types
5959

60-
### Image and media files
61-
6260
The following image and media file types are supported in all contexts.
6361

62+
### Image and media files
63+
6464
* PNG (`.png`)
6565
* GIF (`.gif`)
6666
* JPEG (`.jpg`, `.jpeg`)
@@ -72,62 +72,73 @@ The following image and media file types are supported in all contexts.
7272
> [!NOTE]
7373
> Video codec compatibility is browser specific, and it's possible that a video you upload to one browser is not viewable on another browser. At the moment we recommend using H.264 for greatest compatibility.
7474
75-
### Additional file types
75+
## Additional file types
7676

7777
The following file types are supported for uploads in issue comments, pull request comments, and discussion comments within repositories. This list of file types is also supported in organization discussions.
7878

79-
### Supported file types for uploads
80-
81-
#### Documents
79+
### Documents
8280

8381
* PDFs (`.pdf`)
84-
* Microsoft Office documents (`.docx`, `.pptx`, `.xlsx`, `.xls`, `.xlsm`)
82+
* Microsoft Office documents (`.docx`, `.pptx`, `.xlsx`, `.xls`{% ifversion fpt or ghec or ghes > 3.18 %}` ,.xlsm`{% endif %})
83+
{%- ifversion fpt or ghec or ghes > 3.18 %}
8584
* OpenDocument formats (`.odt`, `.fodt`, `.ods`, `.fods`, `.odp`, `.fodp`, `.odg`, `.fodg`, `.odf`)
8685
* Rich text and word processing files (`.rtf`, `.doc`)
86+
{%- endif %}
8787

88-
#### Text and data files
88+
### Text and data files
8989

90-
* Plain text and markup (`.txt`, `.md`, `.copilotmd`)
91-
* Data and tabular files (`.csv`, `.tsv`, `.log`, `.json`, `.jsonc`)
90+
* Plain text and markup (`.txt`{% ifversion fpt or ghec or ghes > 3.18 %}, `.md`, `.copilotmd`{% endif %})
91+
* Data and tabular files (`.csv`,{% ifversion fpt or ghec or ghes > 3.18 %} `.tsv`,{% endif %} `.log`, `.json`, `.jsonc`)
9292

93-
#### Development and code files
93+
### Development and code files
9494

95+
{%- ifversion fpt or ghec or ghes > 3.18 %}
9596
* C files (`.c`)
9697
* C# files (`.cs`)
9798
* C++ files (`.cpp`)
9899
* CSS files (`.css`)
99100
* Diagrams (`.drawio`)
101+
{%- endif %}
100102
* Dump files (`.dmp`)
103+
{%- ifversion fpt or ghec or ghes > 3.18 %}
101104
* HTML files (`.html`, `.htm`)
102105
* Java files (`.java`)
103106
* JavaScript files (`.js`)
104107
* Jupyter notebooks (`.ipynb`)
108+
{%- endif %}
105109
* Patch files (`.patch`)
110+
{%- ifversion fpt or ghec or ghes > 3.18 %}
106111
* PHP files (`.php`)
112+
{%- endif %}
107113
* Profiling files (`.cpuprofile`)
114+
{%- ifversion fpt or ghec or ghes > 3.18 %}
108115
* Program database files (`.pdb`)
109116
* Python files (`.py`)
110117
* Shell scripts (`.sh`)
111118
* SQL files (`.sql`)
112119
* TypeScript files (`.ts`, `.tsx`)
113120
* XML files (`.xml`)
114121
* YAML files (`.yaml`, `.yml`)
122+
{%- endif %}
115123

116124
> [!NOTE]
117125
> If you use Linux and try to upload a `.patch` file, you will receive an error message. This is a known issue.
118126
119-
#### Archive and compressed files
127+
### Archive and compressed files
120128

121129
* Archives and packages (`.zip`, `.gz`, `.tgz`)
122130

123-
#### Communication and logs
131+
{% ifversion fpt or ghec or ghes > 3.18 %}
132+
133+
### Communication and logs
124134

125135
* Text and email files (`.debug`, `.msg`, `.eml`)
126136

127-
#### Images
137+
### Images
128138

129139
* Bitmap and TIFF images (`.bmp`, `.tif`, `.tiff`)
130140

131-
#### Audio
141+
### Audio
132142

133143
* Audio files (`.mp3`, `.wav`)
144+
{% endif %}

0 commit comments

Comments
 (0)