Questions tagged [mime]

62 questions
3
votes
3 answers

Set MIME type of PHP generated JavaScript file

I have a dynamically created .js file by PHP. For this to work I added the following to an Apache .htaccess file: AddHandler application/x-httpd-php .js AddType application/javascript .js But the .js files are sent with the MIME type text/html. How…
pimvdb
  • 147
  • 1
  • 2
  • 7
2
votes
1 answer

8bit to Quoted-Printable encoding in Exim

Is it at all possible, and how, to configure the Exim4 mail server to convert outgoing messages (or message parts) from 8bit encoding to Quoted-Printable (or Base64, although I'd prefer QP) before signing them with DKIM and transferring them? We…
Ale
  • 1,703
  • 17
  • 25
2
votes
1 answer

Incorrect MIME type - pulling my hair out

I have a problem with CSS files being incorrectly marked text/html by Apache. The file type is mismatched in the browser, and is ignored causing display failures. I'm using Apache 2.2.3 on a RHEL 5 server. I've tried adding this to httpd.conf…
a coder
  • 789
  • 4
  • 20
  • 38
2
votes
3 answers

Apache returning text/html on some png files

I have an Apache web server that has a sub folder for images. For some reason, a few of the .png files are returned as text/html and not as image/png. There is nothing indicating a permission problem and the files return with code 200 and with…
Oren
  • 33
  • 2
  • 8
2
votes
3 answers

What are the default MIME types for IIS 7?

Is there a list of the default MIME types for IIS 7 somewhere? The one I am most concerned with right now is that for .zip files. I know application/zip will work, but IIS 7 has something else by default... I just can't remember what it is. On that…
ubiquibacon
  • 287
  • 4
  • 10
2
votes
1 answer

Considering MIME Expansion bloat, how does that affect settings for Exchange 2003/2007/2010 message size limits?

Since the mime encoding can increase a message's size by 33%, what is the correct math I need to do to filter messages larger than 45Mb? Is the math needed at all? Does the math change among different versions of Exchange?
makerofthings7
  • 8,911
  • 34
  • 121
  • 197
2
votes
1 answer

Adding a signature with an image/logo and *not* creating an attachment icon

My company uses Outlook 2003/2007 on Exchange, and they want to standardize on a signature format. What is the best way to add an image to a signature with these features (in order of priority): Not show an attachment icon (in a majority of email…
makerofthings7
  • 8,911
  • 34
  • 121
  • 197
2
votes
4 answers

How to stop Exchange 2007 from automatically converting plain text emails to HTML?

this.. nice.. exchange server converts my text/plain messages from text to html and messes them up, just because it detects html somewhere in the body. how can i stop him from doing so? edit: i am looking for a server side fix - this is affecting…
Andreas Petersson
  • 121
  • 1
  • 3
  • 5
1
vote
2 answers

linux file -i command outputs octet/stream for every media file

On Linux / Unix Command file: " -i Causes the file command to output mime type strings rather than the more traditional human readable ones " Why does it always output "application/octet-stream" for images and videos? How can I obtain the specific…
Lucia
  • 145
  • 1
  • 7
1
vote
4 answers

Why would a web server set the content type of a redirect to application\octet-stream

I have taken steps to prevent software from being downloaded from the Internet as it was being abused by students. This was implemented using ISA 2006's Content Type filter condition "Application". Amongst many other MIME types it included…
Richard Slater
  • 3,228
  • 2
  • 30
  • 42
1
vote
1 answer

Batch sending s/mime encrypted email - How?

I need to send some sensitive data periodically to a set of recipients via email. Due to the nature of the data, we need to send it encrypted. Some of our clients use PGP/GPG, so it's not an issue, but we have a few cases where the client is not…
JJarava
  • 167
  • 2
  • 9
1
vote
1 answer

Under what conditions in Apache installations is AddHandler application/x-httpd-php .php required?

I am a security researcher who has been running into multiple cases where file upload forms can be exploited, allowing attacker-controlled PHP code to be interpreted by the server, leading to remote code execution. The root cause of this…
some.hacker
  • 11
  • 1
  • 4
1
vote
1 answer

Forcing apache to send correct Content-Type for docx files

This seems to be an old problem: Users retrieving docx files from apache are receiving them with a Content-Type header which claims they're zip archives. After a good deal of searching for solutions I have: Added AddType…
Dave Sherohman
  • 1,779
  • 1
  • 12
  • 16
1
vote
2 answers

Can I use regex or wildcard to set Apache's AddType Directive?

I manage an internal Apache2 system enabling HTTP browsing and downloads of a connected file system. I do not have control of the files, file types, or file names of the content being uploaded by the team. Anything that is possible to render in the…
mmond
  • 111
  • 3
1
vote
1 answer

Applying Transport Rule only if the mail is text/plain and another if it is text/html

I've been at this for quite some time now, not really getting it to work. Unfortunately I am only able to test on our Office365 account and changes take forever to propagate so I can test after changing rules.. The problem is as follows My…
hank
  • 113
  • 1
  • 6