I have an input box for uploading image files
<input type="file" name="userfile" size="35" >
This works upload from my machine, but if I paste in a URL, the
following:
if (($_FILES['userfile']['type']=="image/gif") ||
($_FILES['userfile']['type'])=="image/pjpeg" ||
($_FILES['userfile']['type']=="image/jpeg"))
returns false even if the file is a .gif or a .jpg.
How do I upload pics from a URL?
--
Geoff Berrow
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
<input type="file" name="userfile" size="35" >
This works upload from my machine, but if I paste in a URL, the
following:
if (($_FILES['userfile']['type']=="image/gif") ||
($_FILES['userfile']['type'])=="image/pjpeg" ||
($_FILES['userfile']['type']=="image/jpeg"))
returns false even if the file is a .gif or a .jpg.
How do I upload pics from a URL?
--
Geoff Berrow
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Comment