AFError_MultipartEncodingFailureReason - SwiftDocOrg/Alamofire GitHub Wiki
AFError.MultipartEncodingFailureReason
The underlying reason the .multipartEncodingFailed error occurred.
public enum MultipartEncodingFailureReason
Enumeration Cases
bodyPartURLInvalid
The fileURL provided for reading an encodable body part isn't a file URL.
case bodyPartURLInvalid(url: URL)
bodyPartFilenameInvalid
The filename of the fileURL provided has either an empty lastPathComponent or `pathExtension.
case bodyPartFilenameInvalid(in: URL)
bodyPartFileNotReachable
The file at the fileURL provided was not reachable.
case bodyPartFileNotReachable(at: URL)
bodyPartFileNotReachableWithError
Attempting to check the reachability of the fileURL provided threw an error.
case bodyPartFileNotReachableWithError(atURL: URL, error: Error)
bodyPartFileIsDirectory
The file at the fileURL provided is actually a directory.
case bodyPartFileIsDirectory(at: URL)
bodyPartFileSizeNotAvailable
The size of the file at the fileURL provided was not returned by the system.
case bodyPartFileSizeNotAvailable(at: URL)
bodyPartFileSizeQueryFailedWithError
The attempt to find the size of the file at the fileURL provided threw an error.
case bodyPartFileSizeQueryFailedWithError(forURL: URL, error: Error)
bodyPartInputStreamCreationFailed
An InputStream could not be created for the provided fileURL.
case bodyPartInputStreamCreationFailed(for: URL)
outputStreamCreationFailed
An OutputStream could not be created when attempting to write the encoded data to disk.
case outputStreamCreationFailed(for: URL)
outputStreamFileAlreadyExists
The encoded body data could not be written to disk because a file already exists at the provided fileURL.
case outputStreamFileAlreadyExists(at: URL)
outputStreamURLInvalid
The fileURL provided for writing the encoded body data to disk is not a file URL.
case outputStreamURLInvalid(url: URL)
outputStreamWriteFailed
The attempt to write the encoded body data to disk failed with an underlying error.
case outputStreamWriteFailed(error: Error)
inputStreamReadFailed
The attempt to read an encoded body part InputStream failed with underlying system error.
case inputStreamReadFailed(error: Error)