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