Customizing Upload Widget V2 Text for Mobile
I understand that the "camera" option in the upload widget is only for desktop/laptop. I also understand mobile device camera's are accessible via the "My Files" (local) option. However, the name "My Files" is confusing UX for an end user.
We could theoretically overwrite the text by using a text --> en --> menu --> files --> "Custom Text" but it would be modified on both desktop & mobile barring some customization on our end of implementing desktop options vs mobile options. Before going down that path, I figured I'd ask first if there's a better way for implementing this e.g. Text should show "My Files" on desktop and "Files or Camera" on mobile. If there's a custom text overwrite for mobile-only and I'm missing it, that would be fantastic.
Update:
For anyone who needs a similar workaround, here is what I used for a temporary hack if there isn't an easier solution.
1. Added this library https://github.com/kaimallea/isMobile/
2. Added the following logic to the config object:
if (isMobile.any) {
options.text = {
en: {
menu: {
files: "Files or Camera"
}
}
};
}
-
Hi Austin,
Thanks for sharing your workaround!There is currently no way to customize the widget based on the device. That said, I'm going to open a feature request on your behalf, so the team can evaluate it.
We'll update here if and when this will be available.0
Post is closed for comments.
Comments
1 comment