| imagewidth |
Optional |
The maximum width (in pixels) of the image. |
| thumbpath |
Optional |
If you are creating thumbnails from the original image, the path to the thumbnail directory. |
| thumbwidth |
Optional |
The maximum width for the thumbnail. |
| thumbprefix |
Optional |
A prifix for the thumbnails. Default value is "sm_". |
| nameconflict |
Optional |
The action to take if a file of the same name already exists. Accepted values are "overwrite", "makeunique", "skip" and "error". Default is "overwrite". |
| newimagename |
Optional |
Allows you to rename the uploaded image to a name of your choice. The image name must include the file extension e.g. "myimage.jpg" |
| newthumbname |
Optional |
If you are creating a thumbnail, you can rename the file by using this attribute. The file extension must be included. This attribute overwites the "thumbprefix" attribute. |
| filefield |
Required |
The name of the incoming formfield to upload. |
| imagepath |
Required |
A full path to the image directory. |
| cf_resizeimage.image |
Return |
A return variable that outputs the name of the uploaded file. |
| cf_resizeimage.thumbnail |
Return |
A return variable that outputs the name of the uploaded thumbnail image. |