If a file is linked and active elsewhere in your course site - such as in a Lessons module or an image in a quiz - deleting it from Resources and uploading a new file in its place will break the link. Instead, upload a new version to keep existing links intact.
Select the Resources tool from the Tool Menu of your site.
Ensure that the file name of the new file is displayed in the Choose File field, then click Upload New Version Now.