473,395 Members | 1,762 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

content type header for .ai

Hey all! :)

I am currently working on a form to allow people to submit images via a form to an email address.

I want to make the form be selective in the file types it will accept, but I seem to be stumbling on finding the right content type for one of the file types.

I was hoping that someone could clue me in to what it might be. I should prolly note that I didn't write this code (my brother did) and I don't know a terrible lot about PHP, but I am trying to slowly learn and edit things myself :)

Here is the code as I have it now: (there are two other lines, but to keep this short, I will just post one!)

if( !($file1att_type == "application/postscript" || $file1att_type == "application/octet-stream" || $file1att_type == "image/tiff" || $file1att_type == "image/jpeg" || $file1att_type == "image/eps" || $file1att_type == "image/ai" || $file1att_type == "image/photoshop" || $file1att_type == "") ) {
header("Location: spdproblem.html");
exit;

The file type I can't seem to get to work is Illustrator (.ai) which I have tried just ai and illustrator.

Any help would be appreciated! Thanks :)
Aug 21 '06 #1
2 2940
try...
header('Content-type: image/ai');
I'm not sure if this is correct syntax... but "image/ai" seems to work for me at least.

Denver
Jul 12 '07 #2
mwasif
802 Expert 512MB
Use mime_content_type() to determine the exact mime type.
Jul 12 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

40
by: Harlan Messinger | last post by:
Why would anyone ever have expected a content-type META tag to be effective at all? Is it because someone was misled by the happenstance the letters of the alphabet, the digits, and the characters...
10
by: clintonG | last post by:
Can somebody direct me to documents or source that supports the use of collapsible content that is collapsed by default when the page is loaded? The secondary objective would of course be...
2
by: Jerry Sievers | last post by:
A bit OT as this could pertain to perl CGIs too, etc. I have a php script that is hit, takes a file ID as GET parameter... does various checks including matching PHPSESSID to make sure the user...
5
by: Vlad | last post by:
We are trying to set MailMessage Content-Type to be text/calendar The following code has been used: string subject = "Calendar test 3"; MailMessage emailMessage = new MailMessage();...
7
by: xkeops | last post by:
Thinking of creating a website, most of the pages will have a general toolbar menu, a content and a footer. The content will be the only one who's gonna change but the rest (header,footer) will...
8
by: Amit | last post by:
I have a master page and a content page but the stylesheet isnt getting applied like how it looks in visual studio design view. The master page is defined like this: <%@ Master Language="VB"...
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
1
by: KoosHopeloos | last post by:
L.S., I'm trying to make a layout which is completely fixed in width and height if needed by using three divs rows (header, content, footer) which have each 3 div again to be able to play around...
1
by: eros | last post by:
page1.php (with header function) <?php header("Content-type: text/vnd.wap.wml"); print "<?xml version=\"1.0\" encoding=\"Shift-JIS\"?>"; $test = 123; ?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD...
8
by: xhunter | last post by:
Hi, I am trying to add support for ranges to my download scripts, so users downloading from my site with eg download managers they have the option for multiple connections/resume. I have gone...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.