Especially on servers which use external storage, the temporary directory may not be able to hold a large file during the transfer.
The best solution to this will be to stream the file either directly the target location, or to the app's data directory, making sure to clean it up correctly if the transfer fails.
Especially on servers which use external storage, the temporary directory may not be able to hold a large file during the transfer.
The best solution to this will be to stream the file either directly the target location, or to the app's data directory, making sure to clean it up correctly if the transfer fails.