View Single Post
  #5  
Old 08-21-2011, 06:50 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by salesman View Post
I think there's function on the client to check image width and height which you might be able to use (an image that doesn't exist should have a width/height of 0)
There's getImgWidth and getImgHeight. They can be used on both serverside and clientside. If you use one of them clientside for a file that is uploaded on the server, but the client doesn't have, it will return zero and then start downloading the file, so it's not the best way to check if a file is on the server (you would have to check again when the file is downloaded).
__________________
Reply With Quote