Change File Uploader existing file link content?

When I’m using the File Uploader and the user has already uploaded a single image for instance, the uploader displays as the content of the link to trigger the uploader the full name of the file with its extension.

Sometimes, this is not useful information for the user and I would like the link to just be a static text like “Change image…” instead.

What is the easiest way to do that?

Thanks.

Hi @Nicolas_Blanco,

You can do this with a few lines of CSS.

.uploadcare--widget__file-size {
  display: none;
}

.uploadcare--widget__file-name,
.uploadcare--widget__file-name:hover,
.uploadcare--widget__file-name:focus {
  color: transparent;
}

.uploadcare--widget__file-name:before {
  content: "Change image";
  color: blue;
  text-decoration: underline;
}

The result will look like this

You can set a different text and text color/decoration/etc via corresponding attributes.