---
title: "FileCache..::.GetPublicTempFileName Method (String)"
canonical: https://www.graphicsmill.com/docs/gmwc/M_Aurigma_GraphicsMill_AjaxControls_FileCache_GetPublicTempFileName_1_bb3a7a4f.htm
archived: true
applies_to:
  - product: "Graphics Mill Web Controls"
---

**You’re viewing documentation for an outdated product.** Graphics Mill Web Controls is no longer part of Graphics Mill. For current design editing and rendering tools, see [Design Atoms .NET](https://customerscanvas.com/docs/on-premises/design-atoms-cs/), [Design Atoms JS](https://customerscanvas.com/docs/on-premises/design-atoms-js/), and [Design Editor](https://customerscanvas.com/docs/on-premises/design-editor/).

# FileCache.GetPublicTempFileName Method (String)

**Applies to:** Graphics Mill Web Controls · **Archived documentation**
 
Generates an unique temporary file name for the public cache.
 
**Namespace:** [Aurigma.GraphicsMill.AjaxControls](https://www.graphicsmill.com/docs/gmwc/N_Aurigma_GraphicsMill_AjaxControls.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls (in Aurigma.GraphicsMill.AjaxControls.dll)
 
## Syntax
  
```csharp
public string GetPublicTempFileName(string extension
)
```
 
### Parameters
 
 - extension
     - Type: [System..String](http://msdn2.microsoft.com/en-us/library/s1wwdcbf)
An extension to append to the generated file name.
 
### Return Value
An unique name of the temporary file in the public cache (without full path).
 
### Implements
 
[IFileCache..GetPublicTempFileName(String)](https://www.graphicsmill.com/docs/gmwc/M_Aurigma_GraphicsMill_AjaxControls_IFileCache_GetPublicTempFileName_1_bb3a7a4f.htm.md)
 
## Remarks
  
Note, this method does not create a file with generated name. It just returns a name of the file which is guarantied unique in the public cache folder. You should create this file manually.
 
To get a full physical path to the public cache, use the [GetAbsolutePublicCachePath(String)](https://www.graphicsmill.com/docs/gmwc/M_Aurigma_GraphicsMill_AjaxControls_FileCache_GetAbsolutePublicCachePath_1_bb3a7a4f.htm.md) method. If you need to get an URL to this file (so that this file could be loaded into the browser), use the [GetRelativePublicCachePath(String)](https://www.graphicsmill.com/docs/gmwc/M_Aurigma_GraphicsMill_AjaxControls_FileCache_GetRelativePublicCachePath_1_bb3a7a4f.htm.md) method.
   
## See Also

### Reference

- [FileCache Class](https://www.graphicsmill.com/docs/gmwc/T_Aurigma_GraphicsMill_AjaxControls_FileCache.htm.md)
- [GetPublicTempFileName Overload](https://www.graphicsmill.com/docs/gmwc/O_T_Aurigma_GraphicsMill_AjaxControls_FileCache_GetPublicTempFileName.htm.md)
- [Aurigma.GraphicsMill.AjaxControls Namespace](https://www.graphicsmill.com/docs/gmwc/N_Aurigma_GraphicsMill_AjaxControls.htm.md)
