Accessibility

TechNote (Archived)

Issues when using Sandbox Security with cffile upload action

Issue


When using cffile action=upload within a Sandbox secured environment in ColdFusion MX, you may get an error similar to the following:

Security: The requested template has been denied access to C:\CFusionMX\runtime\servers\default\SERVER-INF\temp\wwwroot-tmp\neotmp11535.tmp

Reason


When using cffile action=upload in a Sandbox Security protected environment, the temporary directory as well as the final destination directory must have Write permissions enabled. ColdFusion MX will first save the file being uploaded to a temporary location during the upload process. Then, after the upload is complete, it will move the file from the temporary directory to the final destination directory specified in thecffile tag.

This has been identified as issue 53397.

Solution


To workaround this issue, enable Read, Write and Delete permissions to the following directory:

Unix:

cf_root/runtime/servers/default/SERVER-INF/temp/wwwroot-tmp/

Windows:

cf_root\runtime\servers\default\SERVER-INF\temp\wwwroot-tmp\

AlertThis content requires Flash

To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.

Download the free Flash Player now!

Get Adobe Flash Player

Creative Commons License

Search Support

Document Details

ID:f2fbaac6

Products Affected:

coldfusion