home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Mac JPeg reads as BMP on PC?

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2115
Discussions: 200,948, Posts: 2,379,404, Members: 246,309
Old March 13th, 2007, 05:36 PM   Digg it!   #1 (permalink)
Senior Member
 
reiss's Avatar
 
Join Date: Jan 2004
Location: London UK
Posts: 527
Mac JPeg reads as BMP on PC?

Hi (again)

I have some php script that allows a user to upload a jpeg, gif or bmp file less than 1.4mb

when I tested this on my pc, works great, then my customer tested it from his mac (using safari) and tried to upload a 68k Jpg

this returned an error. I asked him to send me the image and my PC read it as a 5.72MB BMP file??? which is probably why the error occured.

Is this a cross platform compatibilty issue? how do i resolve it?

heres the bit of PHP that does the checking -

<?php
if (($_FILES["file"]["type"] == "image/gif")
|| ($_FILES["file"]["type"] == "image/pjpeg") || ($_FILES["file"]["type"] == "image/jpeg") || ($_FILES["file"]["type"] == "image/bmp")
&& ($_FILES["file"]["size"] < 1404800))
{

thanks for any help
__________________
Signature images disabled.
reiss is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
IE saves everything as BMP foodbiz Technical Support 7 October 23rd, 2004 05:18 PM
jpeg, bmp,art gif, not showing!!! jomoal998 Webmastering and Programming 19 January 18th, 2004 11:10 PM
String together BMP joker_927 Graphic Design and Digital Photography 1 April 24th, 2003 01:29 AM
which is better??? JPG or BMP PresterJohn General Tech Discussion 49 September 6th, 2002 06:23 AM
mac created jpeg not showing in xp sixf00t4 Applications and Operating Systems 1 September 1st, 2002 11:24 AM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Making Health Care Worse (174)
Is It Just Me? (2937)
The disrespect of Obama by Russian .. (22)
Wireless Televisions. (12)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Regular Build (6)
Is the PSU I received dead? (12)
radeon x850xt platinum & shader.. (5)
Print spooler problem (15)
HIS HD5770 graphic card question (15)
windows vista security holes (9)
Install XP pro and a Vista laptop ?.. (11)
Dept. of HS: NSA 'Helped' Develop V.. (15)
Recent Discussions
Point and Shoot Camera Suggestions. (3)
How to convert MP3's (4)
Wireless Televisions. (12)
Graphics Card Upgrade Question (3)
Laptop with wireless problem. (2)
Internet Lost (1)
Hp Artist Edition + Matching Bag (0)
My monitor won't turn on after instal.. (0)
Asus P4G8X Mobo (6)
radeon x850xt platinum & shader 3 (5)
Xbox 360 GTA: SA disk error (1)
Is the PSU I received dead? (12)
windows 7 internet problem (5)
Multiple Restarts Required at Boot (0)
BSOD On Startup (ntoskrnl.exe) (2)
Print spooler problem (15)
Have you switched yet? (86)
screen resolution vs monitor size (2)
sms storage to PC (0)
Regular Build (6)
Open With ..... Win7 (0)
java code for fibonacci (1)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (35)
windows 7 problem (7)
CPU fan stops spinning randomly (8)


All times are GMT -4. The time now is 09:31 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28