I am wanting to upload a .png file using the copy() function in php... But it is not recognizing the .png... When we look at the sever logs it shows that it was trying to upload .gif???? I threw in the accept attribute to the input file tag on the form, but no luck...
Here's the form element:
<INPUT TYPE=FILE NAME=add_item SIZE=25 MAXLENGTH=96 ACCEPT="image/gif,image/jpg,xml/*,image/png">
And here's the copy() command:
copy($list_item,"$directory/$list_item_name"
If anyone can give me a reason why this isn't working and/or a solution to this problem, I would be forever grateful!!!!!! Thanks!!
Cole
Here's the form element:
<INPUT TYPE=FILE NAME=add_item SIZE=25 MAXLENGTH=96 ACCEPT="image/gif,image/jpg,xml/*,image/png">
And here's the copy() command:
copy($list_item,"$directory/$list_item_name"
If anyone can give me a reason why this isn't working and/or a solution to this problem, I would be forever grateful!!!!!! Thanks!!
Cole