'Selenuim IDE - Test upload box with supported extensions

I have to create test steps within Selenium IDE to test file upload feature.

The allowed file extensions are JPG, PNG, BMP, JPEG, so if a user tried to upload say a PDF, Word or any other extensions the test should fail.

How can I configure this in the tool as steps ?

Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source