Setting the file system

You can set the underlying filesystem for a persistent or temporary storage depending upon how long you want to store the files.

To set the device file system, use the setFileSystem() function.

Method summary

setFileSystem(fileSystem)

  • returns – None
  • params - String (PERSISTENT/TEMPORARY)

-           PERSISTENT – Permanent storage. Used for storage that should not be removed by the user agent without application or user permission.

-          TEMPORARY – Temporary storage. Used for storage with no guarantee of persistence

Example

<cfclientsettings enableDeviceAPI=true>
<cfclient>

<cfset #cfclient.file.setFileSystem('PERSISTENT')#>

</cfclient>

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy