---
title: MSMessageErrorCode.improperFileURL
framework: messages
role: symbol
role_heading: Case
path: messages/msmessageerrorcode/improperfileurl
---

# MSMessageErrorCode.improperFileURL

The URL does not refer to a local file.

## Declaration

```swift
case improperFileURL
```

## See Also

### Error Codes

- [MSMessageErrorCode.fileNotFound](messages/msmessageerrorcode/filenotfound.md)
- [MSMessageErrorCode.fileUnreadable](messages/msmessageerrorcode/fileunreadable.md)
- [MSMessageErrorCode.improperFileType](messages/msmessageerrorcode/improperfiletype.md)
- [MSMessageErrorCode.stickerFileImproperFileAttributes](messages/msmessageerrorcode/stickerfileimproperfileattributes.md)
- [MSMessageErrorCode.stickerFileImproperFileSize](messages/msmessageerrorcode/stickerfileimproperfilesize.md)
- [MSMessageErrorCode.stickerFileImproperFileFormat](messages/msmessageerrorcode/stickerfileimproperfileformat.md)
- [MSMessageErrorCode.urlExceedsMaxSize](messages/msmessageerrorcode/urlexceedsmaxsize.md)
- [MSMessageErrorCode.sendWhileNotVisible](messages/msmessageerrorcode/sendwhilenotvisible.md)
- [MSMessageErrorCode.sendWithoutRecentInteraction](messages/msmessageerrorcode/sendwithoutrecentinteraction.md)
- [MSMessageErrorCode.apiUnavailableInPresentationContext](messages/msmessageerrorcode/apiunavailableinpresentationcontext.md)
- [MSMessageErrorCode.unknown](messages/msmessageerrorcode/unknown.md)
