Users can upload images to my web app. Am I required to provide alt text?
Question
Users can upload images to my web app. Am I required to provide alt text?
Answer
User uploaded images are not required by WCAG to have alternative text. However, there are some best practice strategies for ensuring user uploaded images are accessible:
- Provide an option for users to add alternative text when uploading images.
- If the file name would be meaningful in context, make the file name the alt text attribute value (For example,
alt="filename.png"
).
Free Tools to Continue Learning
Accessible Web RAMP
Monitor your website and manage your progress towards WCAG conformance.
Accessible Web Academy
Career specific courses to help power up your accessibility knowledge.