# ftSizeLimit for Images - customizing error message

**URL:** <https://discourse.farcrycore.org/t/ftsizelimit-for-images-customizing-error-message/1627>\
**Category:** howto\
**Created:** [February 13, 2019, 4:52pm UTC](https://discourse.farcrycore.org/t/ftsizelimit-for-images-customizing-error-message/1627 "2019-02-13T16:52:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dckalorama](https://discourse.farcrycore.org/user_avatar/discourse.farcrycore.org/dckalorama/32/1225_2.png) [@dckalorama](https://discourse.farcrycore.org/u/dckalorama)\
**Post date:** [February 13, 2019, 4:52pm UTC](https://discourse.farcrycore.org/t/ftsizelimit-for-images-customizing-error-message/1627/1 "2019-02-13T16:52:12Z")

</div>

Is there a way to customize the error message from uploading an image larger than the limit listed in ftSizeLimit ? Currently, the message is

youimage.jpg is not within the file size limit of 0MB

I tried using the ftErrorSizeMessage attribute that the file formtool uses, but that did not work.

Thanks,

- JR

---

<div class="post-metadata">

**Author:** ![justincarter](https://discourse.farcrycore.org/user_avatar/discourse.farcrycore.org/justincarter/32/1213_2.png) [@justincarter](https://discourse.farcrycore.org/u/justincarter)\
**Post date:** [February 15, 2019, 6:27am UTC](https://discourse.farcrycore.org/t/ftsizelimit-for-images-customizing-error-message/1627/2 "2019-02-15T06:27:20Z")

</div>

You’re right, this error message string is currently hard coded, with the filename and file size limit being dynamically evaluated;

> <https://github.com/farcrycore/core/blob/master/packages/formtools/image.cfc#L970>

What type of customisation do you need to do to this string, are you trying to provide a translation or just change the message entirely? If we add it to the resource bundles it could be overridable and still dynamic.

(Side note: the file formtool error message should be added to the resource bundles to be able to provide translations as well, and the messages in both formtools probably should be similar / consistent).
