UseMemory Property

Object: SoftArtisans.FileUp
Syntax: UseMemory[= Boolean]
Type: Boolean
Read/Write: Read/Write
Description:

If UseMemory is set to True, FileUp will store uploaded data in memory until it is saved. By default, UseMemory is set to False and FileUp will write uploaded data to temporary files before saving.

Storing an upload in memory is faster and more secure than storing on disk. However, before enabling UseMemory, consider other factors affecting the upload, such as how much memory is available on the server, how active the server is, and the size of the upload.

Note: When using the HttpModule with an ASP.NET upload, since the HttpModule caches the uploaded file before passing the request to FileUp, this property will have no effect.
Examples:
ASP <%
Set fileUpload = Server.CreateObject("SoftArtisans.FileUp")
fileUpload.UseMemory = True
%>
ASP.NET N/A

Copyright © 2010 SoftArtisans, Inc. All rights reserved.