|
Posted by Jon on 12/05/05 17:26
Man, I'm stuck here - Any ideas from anyone?
"Jon" <jonra@netins.com> wrote in message
news:dmqete$55s$1@news.netins.net...
> All,
>
> I'm currently working on a photo upload script using PHP. Everything
> appears to work fine for the most part, however it appears that some of my
> images do not show up with any type... so, I'm running my script using:
>
> if ($_FILES['imagefile']['type'] == "image/jpeg" ||
> $_FILES['imagefile']['type'] == "image/pjpeg")
>
> However, some photos have a type of nothing... so, though the file is
> .jpg, the upload will fail as it's not getting the type of jpeg out of the
> $_FILES array. I've tried opening the actual images that aren't working
> and saving them as .jpg to make sure something didn't go bad on the
> original save, but have the same problem.
>
> Anyone seen this or know of a fix?
>
[Back to original message]
|