GWcode FileInfo


Leon Dijk - GWcode

3rd Party (Free)

BSD 3-Clause License

EE Version Support

  • ExpressionEngine 2


If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher


  • jQuery for the Control Panel

Add-On Type(s)



Get information about files on your server.

ExpressionEngine plugin to get information about files on your server, such as the file’s extension, size, the filename without the extension, file type, the dimensions (if the file is an image), etc.

The plugin provides two tags, one to get information about a single file, {exp:gwcode_fileinfo:single}, and one to get information about all files in a directory, {exp:gwcode_fileinfo:multiple}.


{exp:gwcode_fileinfo:single file="/media/myimage.jpg"}
	{if file_not_found}The file couldn't be found!<br />{/if}
	File full path: {file_fullpath}<br />
	File URL: {file_url}<br />
	File name: {file_name}<br />
	File basename: {file_basename}<br />
	File extension: {file_extension}<br />
	File extension mime: {file_extension_mime}<br />
	File size in bytes: {file_size_bytes}<br />
	File size formatted: {file_size_formatted}<br />
	File symbolic permissions: {file_symbolic_permissions}<br />
	File octal permissions: {file_octal_permissions}<br />
	File is image: {if file_is_image}Yes{if:else}No{/if}<br />
	{if file_is_image}
		Image width: {image_width}<br />
		Image height: {image_height}<br />
		Image bits: {image_bits}<br />
		Image channels: {image_channels}<br />
		Image mime: {image_mime}<br />

GWcode FileInfo Links

This entry was created September 13, 2012, 10:43 am.
This entry was last updated September 13, 2012, 2:00 pm.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at to initiate your return. If you have questions, email

1 Review:

pbrienesse 11.18.12

Rating - {addon_rating_average}

Of the 3 addons for file info I tried this seems to be the only one that supports a full url instead of just a relative path. The formatted size variable is more accurate than others. Works great!