Title: Code help for file checking&#8230;
Last modified: August 20, 2016

---

# Code help for file checking…

 *  [csvaradha](https://wordpress.org/support/users/csvaradha/)
 * (@csvaradha)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/code-help-for-file-checking/)
 * hi,i’m in need of a code or idea. I want to show the images only if it exist 
   in uploads folder otherwise not to show the link. I used file_exist(path of the
   file by url) and is_file function. But its not working. And my code is here.
   
   $kv_out_small contains the url of image file. if (is_file($kv_out_small)) {
 * } else {
 * }
    and it returns to execute else queries. What i made wrong here. kindly revert
   me some reply.

The topic ‘Code help for file checking…’ is closed to new replies.

## Tags

 * [wp-uploads](https://wordpress.org/support/topic-tag/wp-uploads/)

 * 0 replies
 * 1 participant
 * Last reply from: [csvaradha](https://wordpress.org/support/users/csvaradha/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/code-help-for-file-checking/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
