Rank card background has no validation

The rank background image input has no validation.
1 Reply
Apteryx
ApteryxOP11mo ago
@Shadow
const url = 'https://evaluate.run/icon.png';
const response = await fetch(`https://wsrv.nl/?url=${url}`);
if (response.status === 200) {
// image is valid
} else {
// image is not valid
}
const url = 'https://evaluate.run/icon.png';
const response = await fetch(`https://wsrv.nl/?url=${url}`);
if (response.status === 200) {
// image is valid
} else {
// image is not valid
}
wsrv.nl is a free image cache and resize/image proxy service, i used it with my Qwaroo project to validate user inputted image urls (as well as to proxy images to prevent tracking) it will return status code 200 if it is a valid image, otherwise 404
in response to https://discord.com/channels/744282929684938844/1167521129607479338/1189049235795091539
Want results from more Discord servers?
Add your server