javascript - Is there way to check the file size in ejs? -


i have image located in folder while showing front end want check size if file size 0 want show media not found.

  if(filesize!=0)     {      <li class="message left appeared"><div class="text_wrapper"><div class="text"><img src="/public/images/abc.png" style="width:400px;"></div></div></li>       }     else     {     media not found     } 


Comments

Popular posts from this blog

c++ - list<myClass<int> * > sort -

Meteor app using NGINX as load balancer -

python - How to find the cumulative sum of numbers in a list? -