# Upload Files modal throws browser alert when trying to crop image for Smart Action form field

**URL:** <https://community.forestadmin.com/t/upload-files-modal-throws-browser-alert-when-trying-to-crop-image-for-smart-action-form-field/3707>\
**Category:** Help me!\
**Created:** [November 11, 2021, 1:40pm UTC](https://community.forestadmin.com/t/upload-files-modal-throws-browser-alert-when-trying-to-crop-image-for-smart-action-form-field/3707 "2021-11-11T13:40:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nilesh\_Shirsat](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/nilesh_shirsat/32/3176_2.png) [@Nilesh\_Shirsat](https://community.forestadmin.com/u/Nilesh_Shirsat)\
**Post date:** [November 11, 2021, 1:40pm UTC](https://community.forestadmin.com/t/upload-files-modal-throws-browser-alert-when-trying-to-crop-image-for-smart-action-form-field/3707/1 "2021-11-11T13:40:20Z")

</div>

When using FilePicker widget, whenever I try to upload image and crop borders, browser alert is thrown stating `The " ************" form values will be lost, are you sure to continue?`.  
For each action on image cropping this alert is thrown.  
When clicking cancel button, it allows to proceed.  
When clicking Ok button, Smart action’s modal is closed.

This alert is only thrown for Smart Action form.

## Expected behavior

Trying to crop image in Upload files modal should allow cropping without interruption.

## Actual behavior

Continous alert is thrown with message.

## Context

Please provide any relevant information about your setup.

- Package Version: 8.3 (forest-express-sequelize)
- Express Version: 4.17.1
- Sequelize Version: 6.6.5
- Database Dialect: MySql
- Database Version: 5.7.24
- Project Name: -

 ![Screenshot 2021-11-11 at 6.46.04 PM](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/0/0a4fe9f959586276cef4ed8272fc970e552b55de.jpeg)

---

<div class="post-metadata">

**Author:** ![anon62739609](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@anon62739609](https://community.forestadmin.com/u/anon62739609)\
**Post date:** [November 12, 2021, 11:25am UTC](https://community.forestadmin.com/t/upload-files-modal-throws-browser-alert-when-trying-to-crop-image-for-smart-action-form-field/3707/2 "2021-11-12T11:25:37Z")

</div>

Hi @Nilesh_Shirsat and welcome in our community 🍾 ,

I’ll try to reproduce

---

<div class="post-metadata">

**Author:** ![anon62739609](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@anon62739609](https://community.forestadmin.com/u/anon62739609)\
**Post date:** [November 12, 2021, 12:33pm UTC](https://community.forestadmin.com/t/upload-files-modal-throws-browser-alert-when-trying-to-crop-image-for-smart-action-form-field/3707/3 "2021-11-12T12:33:16Z")

</div>

I do reproduce your issue, I’ll create a ticket to fix this. You’ll be able to check it’s status just below 😉

> **[ClickUp](https://sharing.clickup.com/t/h/1kcn98h/I6GY6M2XLNTUX8L)**

---

<div class="post-metadata">

**Author:** ![anon37903635](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@anon37903635](https://community.forestadmin.com/u/anon37903635)\
**Post date:** [November 25, 2021, 11:09am UTC](https://community.forestadmin.com/t/upload-files-modal-throws-browser-alert-when-trying-to-crop-image-for-smart-action-form-field/3707/4 "2021-11-25T11:09:51Z")

</div>

Hey @Nilesh_Shirsat, and welcome!

Thank you for reporting this issue. A fix has been released today 🚀  
Could you check that everything is working fine on your side now?

---

<div class="post-metadata">

**Author:** ![Nilesh\_Shirsat](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/nilesh_shirsat/32/3176_2.png) [@Nilesh\_Shirsat](https://community.forestadmin.com/u/Nilesh_Shirsat)\
**Post date:** [November 29, 2021, 8:00am UTC](https://community.forestadmin.com/t/upload-files-modal-throws-browser-alert-when-trying-to-crop-image-for-smart-action-form-field/3707/5 "2021-11-29T08:00:09Z")

</div>

Thanks @anon37903635 for quick fix. It is working as expected. We no longer see browser alert for image crop activity.
