Simple S3 Uploader Template Tags

primary tag - {custom_field_name}

The url of the file

:name - {custom_field_name:name}

The original filename

:authenticated_url - {custom_field_name:authenticated_url minutes="60" secure="no"}

A temporary link to the file authenticated using your S3 account, good for any number of minutes you specify. Please note that there may be a time discrepancy between your server and Amazon S3 so it may not be accurate right to the minute, some experimentation may be necessary. This is the only way to link to a file uploaded without public read access. Specifying secure="yes" will generate a link that uses SSL (https) to access the file.

:s3_filename - {custom_field_name:s3_filename}

The name of the file on S3

:bytes - {custom_field_name:bytes}

The size of the file in bytes (10483)

:size - {custom_field_name:size}

The size of the file in a human readable format (24.52 KB, 1.3 MB, etc.)

:mime - {custom_field_name:mime}

The mime type of the file (image/gif, application/pdf, video/x-flv, etc.)

:mime_class - {custom_field_name:mime_class}

The first segment of the mime type (image, application, video, etc.). useful in conditionals to know if the file is some type of image.

:image_width - {custom_field_name:image_width}

If the file is an image, this will be its width in pixels

:image_height - {custom_field_name:image_height}

If the file is an image, this will be its height in pixels

:thumb_url - {custom_field_name:thumb_url}

If a thumbnail has been generated, this will be the url to that file

:thumb_authenticated_url - {custom_field_name:thumb_authenticated_url minutes="60" secure="no"}

A temporary link to the thumbnail file authenticated using your S3 account, good for any number of minutes you specify. Please note that there may be a time discrepancy between your server and Amazon S3 so it may not be accurate right to the minute, some experimentation may be necessary. This is the only way to link to a file uploaded without public read access. Specifying secure="yes" will generate a link that uses SSL (https) to access the file.

:thumb_s3_filename - {custom_field_name:thumb_s3_filename}

If a thumbnail has been generated, this will be the filename of that file on S3

:thumb_bytes - {custom_field_name:thumb_bytes}

The size of the thumbnail file in bytes (1487)

:thumb_size - {custom_field_name:thumb_size}

The size of the thumbnail file in a human readable format (1.4 KB)

:thumb_width - {custom_field_name:thumb_width}

The width of the thumbnail file in pixels

:thumb_height - {custom_field_name:thumb_height}

The height of the thumbnail file in pixels

information

Price: $29 per site - buy now at devot-ee.com

Compatibility:

  • ExpressionEngine 1.6
  • ExpressionEngine 2.x

Most Recent Version:

  • EE 1.6: Simple S3 Uploader 1.3.5
    October 28, 2010
  • EE 2.x: Simple S3 Uploader 1.3.6
    May 17, 2011

documentation