> For the complete documentation index, see [llms.txt](https://guide.go.gov.sg/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.go.gov.sg/guide-1/file-sharing.md).

# File Sharing

Upload a file and share it with the public through a short link. You don't need Dropbox, Google Drive or another file-hosting service.

{% hint style="danger" %}
**Only share files that are meant to be public.** See [What data can GoGovSG/ForSG/ForEduSG handle?](https://guide.go.gov.sg/guide-1/what-data-classification-is-allowed.md).
{% endhint %}

## How do I share a file?

1. Choose **To a File** (the other options are **To a URL** and **From a .csv**).

   <figure><img src="https://content.gitbook.com/content/QUOVfPNmRg249PMXOlpi/blobs/HiYGUVAzeTjUbjDQkKRF/Screenshot%202023-03-22%20at%201.37.18%20PM.png" alt=""><figcaption></figcaption></figure>
2. Click **Browse** and select your file.
3. Set a custom short link and click **Create**.

{% hint style="info" %}
**Maximum file size is 20 MB.** Files over 10 MB can take 20-30 seconds to be scanned and uploaded.
{% endhint %}

The file's long link will be `file.go.gov.sg/...`, `file.for.sg/...` or `file.for.edu.sg/...`, depending on your product.

![](https://content.gitbook.com/content/QUOVfPNmRg249PMXOlpi/blobs/UnP2FBMxg46sfNL90LJU/file-upload-2.png)

## How do I replace my file?

Select the file's link and click **Replace file**. Upload the new file. The short link and file link stay the same.

![](https://content.gitbook.com/content/QUOVfPNmRg249PMXOlpi/blobs/mLiMSwKbM9c7CZ6voHkp/replace-file.png)

## Why did my upload fail?

1. **The file is over 20 MB.**
2. **The file type isn't accepted.**

   | Type      | Accepted formats                          |
   | --------- | ----------------------------------------- |
   | Documents | PDF, DOCX, PPTX, XLSX, ODS, RTF, TXT, CSV |
   | Images    | BMP, GIF, JPEG, JPG, PNG, TIF, TIFF       |
   | Video     | AVI, MPEG, MPG                            |
   | Design    | DWF, DWG, DXF                             |
   | Archives  | ZIP                                       |

   * Older Microsoft formats (.doc, .ppt and .xls) are not accepted. Open the file, use Save As, and save it as .docx, .pptx or .xlsx, then upload that version. See Microsoft’s guide on [saving a file in a different format](https://support.microsoft.com/en-us/office/save-back-up-and-recover-a-file-in-microsoft-office-a7f0a209-ad22-4212-bb53-6cd8e801a6fb).
3. **The file is password-protected.** Remove the password and try again.
4. **The file failed antivirus scanning.**&#x20;
   * Please notify your security team or CIO if your file has been flagged as insecure on GoGovSG.
