Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Uploading a .png file...

Status
Not open for further replies.

colep

Programmer
Jul 18, 2002
58
US
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=&quot;image/gif,image/jpg,xml/*,image/png&quot;>

And here's the copy() command:
copy($list_item,&quot;$directory/$list_item_name&quot;);

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 ;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top