# Image Upload not working with IE

**URL:** <https://forum.kirupa.com/t/image-upload-not-working-with-ie/237519>\
**Category:** programming\
**Created:** [August 30, 2007, 11:32pm UTC](https://forum.kirupa.com/t/image-upload-not-working-with-ie/237519 "2007-08-30T23:32:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lacohido](https://avatars.discourse-cdn.com/v4/letter/l/e8c25b/32.png) [@lacohido](https://forum.kirupa.com/u/lacohido)\
**Post date:** [August 30, 2007, 11:32pm UTC](https://forum.kirupa.com/t/image-upload-not-working-with-ie/237519/1 "2007-08-30T23:32:23Z")

</div>

hi There-  
I made an image uploader which works with FF and Safari, but not IE. Any help would be much appreciated. Here’s the code:

```php
<?php

$new_file_name=$_POST['location'].".jpg";
$path= "images/".$new_file_name;

if(isset($_POST['Submit']))
{
if($HTTP_POST_FILES['ufile']['type']!="image/jpeg")
{
echo "Error: Only .JPG's can be uploaded";
}
else
{
if(copy($HTTP_POST_FILES['ufile']['tmp_name'], $path))
{ 
echo "Image Successfully Uploaded<BR/>";
}
}
}
?> 

```
