I need to change the upload button/widget text from ‘choose a file’ to ‘pick a photo’. How would I go about doing this in custom code with Webflow?
Just found it with this:
<script>
UPLOADCARE_PUBLIC_KEY = "demopublickey";
UPLOADCARE_LOCALE_TRANSLATIONS = {
buttons: {
choose: {
files: {
one: 'Cmon, upload smthng',
other: 'Cmon, upload smthng'
},
images: {
one: 'Cmon, upload image',
other: 'Cmon, upload images'
}
}
}
};
</script>
<script charset="utf-8" src="//ucarecdn.com/libs/widget/3.1.3/uploadcare.full.min.js"></script>
<input type="hidden" role="uploadcare-uploader" name="content" />
1 Like
Correct. The answer to this question has already been posted here How to change the default button text on the widget?