The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

move_uploaded_file : Mac/Safari

I've coded a system which allows the upload of image files to a particular directory. This is all very well and good, and works fine - except when using Safari on a Mac.

In this case, the tmp_name is the one being saved to the database i.e. the absolute path to the .tmp file e.g. "C:\php4\uploads\php4E5F.tmp". From Windows, it's fine. Anyone ever seen it or have any ideas?

What a nipple! Problem found. It appears that uploading a JPG file from different OS's means it gets a different type - which doesn't make any sense to me at all. Uploading from a PC, it gets an "image/pjpeg" type, but from a Mac it gets a "image/jpeg" type.