# Failed Uploads and Corrupt Files

Sometimes, files uploaded to Sirv become corrupted. They may be completely empty (zero bytes) or have a size but remain unreadable.

This article explains why these corrupt files occur, how to identify them, and what steps you can take to fix or prevent them.

## Causes of corrupt files

Files can become corrupt in several ways:

-   **Already corrupt before upload** - the file could have already been corrupt (missing its body) before it was uploaded to Sirv.
-   **Corrupt during upload** - if the upload is interrupted before completion, the file may become corrupted.
-   **Corrupt after upload** - the file could become corrupt after it has fully uploaded to Sirv, though this is very unlikely.

## How to detect corrupt files

There are a few ways to determine if a file is corrupt:

-   **Cannot open the file** - if the file fails to open in an image viewer or browser, it may be corrupted.
-   **415 error in Sirv** - if you attempt to view an image in Sirv and receive a 415 error, this may indicate that the file is corrupt.
-   **Unexpected file size** - a corrupted file may have an unusually small or large size compared to what is expected (check the [upload limits](/help/getting-started/full-list-of-limits/) too).

Additionally, if Sirv detects that a zero byte file has been uploaded to your account, it will generate a message on the [Notifications page](https://app.sirv.com/notifications/all) of your Sirv account:

![Corrupt image notification screenshot](https://sirv.sirv.com/website/screenshots/Help-Center/corrupt-file-notification.png?profile=screenshots-grey-border)

You can also look for any zero byte images by [viewing all images in your Sirv account](https://app.sirv.com/assets/library) and showing the results in ascending size order.

## How to solve corrupt files

-   **Check the original file** - try opening the file in an image viewer or browser. If it does not display correctly, it is already corrupt, and you will need to obtain a new copy.
-   **Re-upload the file** - if the original file is intact, try uploading it again to see if the issue persists.
-   **Use a different upload method** - if corruption reoccurs, consider using an alternative upload method (e.g., instead of using FTP, use S3, the Sirv [REST API](/help/rest-api/sirv-rest-api/) or [GitHub Actions](/help/integrations/upload-images-to-sirv-with-github-actions/).)

## How to avoid corrupt files

To minimize the risk of file corruption:

-   **Avoid using FTP** - FTP can be unreliable and may lead to incomplete uploads. If you must use FTP, use a reliable client, [we recommend Filezilla](/help/file-upload/upload-images-with-filezilla/).
-   **Use alternative upload methods** - uploading via [S3](/help/file-upload/upload-images-to-s3-with-cyberduck/), the [Sirv REST API](/help/file-upload/upload-files-with-the-api/), or directly through [app.sirv.com](https://app.sirv.com/) is more reliable.
-   **Sirv’s URL fetching API method** - this method prevents empty files from being uploaded by returning a failure response. To fetch a whole list of URLs, use the [CSV bulk upload tool](/help/file-upload/bulk-upload-images-csv/).
-   **Verify the original file** - before uploading, ensure the file is [ready for upload](/help/image-management/preparing-your-images-for-upload/), not broken or missing data.
