Detaches any temporary file associated with the uploaded file.



string Detach()


Name Type Description
return string The path to the temporary file which was detached.



When using GigUpload the contents of each posted file are cached on disk rather than in memory. You can continue to use the standard methods you would use for smaller files but you may find it more efficient to access the uploaded file directly.

This is particularly true for very large uploads. It can take some time to copy a 1 GB file from one location to another and often it is more efficient simply to detach the upload cache, move it to the required location and then rename it.

When you detach a temporary file the path to that file will be passed back to you. At that point you take responsibility for the file and you should ensure that it is either moved to an appropriate location or deleted as appropriate.



See Also

GigUpload technology. ABCUpload Config files. TempFile property.