Part.writeTo

A convenience method to write this uploaded item to disk.

<p>This method is not guaranteed to succeed if called more than once for the same part. This allows a particular implementation to use, for example, file renaming, where possible, rather than copying all of the underlying data, thus gaining a significant performance benefit.

@param fileName the name of the file to which the stream will be written. The file is created relative to the location as specified in the MultipartOptions

@throws IOException if an error occurs.

interface Part
void
writeTo
(
string fileName
,
bool canOverwrite = false
)

Meta