Skip to content

Commit 967b612

Browse files
lumaxisCopilotam-stead
authored
Update supported file types to attach to Issues and PRs (#56470)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Anne-Marie <102995847+am-stead@users.noreply.github.com>
1 parent 75b8220 commit 967b612

File tree

3 files changed

+24
-12
lines changed

3 files changed

+24
-12
lines changed
78.9 KB
Loading
81.1 KB
Loading

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

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,14 @@ topics:
3030
3131
{% endif %}
3232

33-
To attach a file to an issue or pull request conversation, drag and drop it into the comment box. Alternatively, you can click {% octicon "paperclip" aria-label="Attach files" %} in the formatting bar above the comment box to browse, select, and add a file from your computer.
33+
To attach a file to an issue or pull request conversation, drag and drop it into the comment box.
34+
Alternatively, you can click {% octicon "paperclip" aria-label="Attach files" %} below the issue comment box to browse, select, and add a file from your computer.
3435

35-
![Screenshot of the comment box. The "Attach files" icon is outlined in orange.](/assets/images/help/issues/attach-file-icon.png)
36+
![Screenshot of the issue comment box. The "Attach files" icon is outlined in orange.](/assets/images/help/issues/attach-file.png)
37+
38+
For a pull request, you can also click {% octicon "paperclip" aria-label="Attach files" %} in the formatting bar above the pull request comment box.
39+
40+
![Screenshot of the pull request comment box. The "Attach files" icon is outlined in orange.](/assets/images/help/pull_requests/attach-file.png)
3641

3742
When you attach a file, it is uploaded immediately to {% data variables.product.github %} and the text field is updated to show the anonymized URL for the file. {% ifversion fpt or ghec %}For more information on anonymized URLs see [AUTOTITLE](/authentication/keeping-your-account-and-data-secure/about-anonymized-urls).{% endif %}
3843

@@ -50,26 +55,33 @@ The maximum file size is:
5055
> [!NOTE]
5156
> To upload videos greater than 10MB to a repository owned by a user or organization on a paid {% data variables.product.prodname_dotcom %} plan, you must either be an organization member or outside collaborator, or be on a paid plan.
5257
53-
We support these files:
58+
## Supported file types
59+
60+
### Image and media files
61+
62+
The following image and media file types are supported in all contexts.
5463

5564
* PNG (`.png`)
5665
* GIF (`.gif`)
5766
* JPEG (`.jpg`, `.jpeg`)
5867
{%- ifversion svg-support %}
5968
* SVG (`.svg`)
6069
{%- endif %}
61-
* Log files (`.log`)
62-
* Markdown files (`.md`)
63-
* Microsoft Word (`.docx`), PowerPoint (`.pptx`), and Excel (`.xlsx`) documents
64-
* Text files (`.txt`)
65-
* Patch files (`.patch`)
70+
* Video (`.mp4`, `.mov`, `.webm`)
6671

6772
> [!NOTE]
68-
> If you use Linux and try to upload a `.patch` file, you will receive an error message. This is a known issue.
73+
> 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.
74+
75+
### Additional file types
76+
77+
The following file types are supported when uploading to issue and pull request comments in repositories.
6978

7079
* PDFs (`.pdf`)
71-
* ZIP (`.zip`, `.gz`, `.tgz`)
72-
* Video (`.mp4`, `.mov`, `.webm`)
80+
* Microsoft Office documents (`.docx`, `.pptx`, `.xlsx`, `.xls`)
81+
* OpenDocument formats (`.odt`, `.fodt`, `.ods`, `.fods`, `.odp`, `.fodp`, `.odg`, `.fodg`, `.odf`)
82+
* Text and data files (`.txt`, `.csv`, `.log`, `.md`, `.json`, `.jsonc`)
83+
* Archive files (`.zip`, `.gz`, `.tgz`)
84+
* Development files (`.patch`, `.cpuprofile`, `.dmp`)
7385

7486
> [!NOTE]
75-
> 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.
87+
> If you use Linux and try to upload a `.patch` file, you will receive an error message. This is a known issue.

0 commit comments

Comments
 (0)