d2jsp
Log InRegister
d2jsp Forums > d2jsp > General Help > Site Suggestions > Don't Allow People To Add Sigs Over Capacity
Closed New Topic New Poll
Member
Posts: 552
Joined: Aug 18 2021
Gold: 2,482.00
Aug 24 2021 01:00pm
If you have a rule that a sig can't exceed 50kb. Then just simply program your site to not allow sigs to exceed 50kb. Why is this not already in effect?
Member
Posts: 13,133
Joined: Dec 26 2006
Gold: 44.69
Aug 24 2021 10:00pm
im not a coder,but if it was that simple im sure they would have already done so
be sure to add a poll to your site suggestions and read this info on making one
https://forums.d2jsp.org/topic.php?t=57896631&f=258

Member
Posts: 11,254
Joined: Nov 6 2004
Gold: 0.00
Aug 25 2021 01:23am
it is possible using a HEAD HTTP Request which can return the content-length value which is the size of image in bytes
then you could make a condition stating if content-length > 50000 then don't allow image to display
Admin
Posts: 24,280
Joined: Sep 24 2002
Gold: 30,257.79
Trader: Trusted
Aug 25 2021 05:59am
Quote (shenk @ Aug 25 2021 02:23am)
it is possible using a HEAD HTTP Request which can return the content-length value which is the size of image in bytes
then you could make a condition stating if content-length > 50000 then don't allow image to display


Except for images that are changed after they are checked, such as image rotators. Also, some sites don't support HEAD, like imgur (which did not as of a bug fix in April 2020, listed in site updates, just to name one provider).
Go Back To Site Suggestions Topic List
Closed New Topic New Poll