The tag has no wiki summary.

learn more… | top users | synonyms

30
votes
5answers
46k views

Why are docx, xlsx, pptx downloading from webserver as zip files?

On my Apache server I have stored several docx, xlsx pptx files. Some client browsers think that theses are regular zip files and change the file extension when downloading. How do I make it not do ...
10
votes
2answers
4k views

Making libmagic/file detect .docx files

As seen elsewhere, docx, xlsx and pttx are ZIPs. When uploading them to my web application, file (via libmagic andpython-magic) detects them as being ZIP. I store the contents of the file as a blob ...
5
votes
3answers
2k views

Subversion - Can I set auto-props on the server side?

I'm maintaining a SVN server and on user needs to commit many adobe illustrator files (ie *.ai). I can use the auto-props in their config to set it as a binary file so that it won't be in the mailing ...
5
votes
1answer
4k views

Apache delivering CSS and JS files, but browsers don't render them

A webpage is being hosted by apache2, CentOS 6.2. It Gets HTML, CSS, JS files ok to the client side. But CSS and JS don't render, What can be hapenning? Since they should run 100% on client side...
4
votes
2answers
2k views

Does the presence of a Content-ID header in an email MIME mean that the attachment must be embedded?

Two different third-party email products we have are reacting differently to the presence of a content-id header in the MIME source of an email. This is resulting in an inconsistent user experience ...
3
votes
3answers
1k views

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 ...
3
votes
2answers
1k views

nginx, x-accel-redirect and mime types

In my nginx 0.8.34 setup I'm using the X-Accel-Redirect feature to control file downloads in the application code while not having the application handle the download itself. After much pain this now ...
2
votes
2answers
844 views

Is there a command line MIME extractor shipped with RHEL 5?

It looks like mpack is not shipped with RHEL. Is there a command line MIME extractor (i.e. something that can be used from a shell script) shipped with RHEL 5 that does not require installing a third ...
2
votes
5answers
5k views

Making Apache recognize MIME type of files without extension

I have some old HTML files that were created elsewhere by someone else. Many of them don't, for some reason, have the .html extension on them. I don't want to have to change them if possible, but ...
2
votes
2answers
239 views

Server reporting incorrect mime type for css files

We have a VPS server that we host our websites on. I have written a CMS using CodeIgniter. On one of the interfaces, I am attempting to upload a css file to the system. This worked correctly when we ...
2
votes
1answer
3k views

How to serve unknown file types from IIS 7

Is there a way to serve unknown file types in IIS 7? I only want to do this for a single directory where execution is turned off and everything will be served as a static file. As it is now, I have ...
2
votes
2answers
2k views

nginx mime types and gzip

Nginx allows you to map file extensions to mime types. As the documentation says, it even comes with a pre built list of mime types (pasted at the end of the question). I've always trusted this ...
2
votes
2answers
2k views

Delivery status notification, invalid header: bad MIME

Each email that is generated by the shop web application is returning: Delivery status notification, invalid header: bad MIME From looking at the error message it look like it is complaining about ...
2
votes
3answers
809 views

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 ...
2
votes
1answer
3k views

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 ...
2
votes
1answer
2k views

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): ...
2
votes
2answers
1k views

Exchange 2003 automatically converts text/plain emails to text/html for IMAP retrieval

When accessing an Exchange 2003 server via IMAP, emails that were sent as text/plain (and ones that had no MIME encoding specified at all) get automatically converted to multipart/alternative with the ...
1
vote
4answers
938 views

Why are MIME types needed if we can identify file types by their extensions?

If people's computers can decide what to do with files based on their extensions (.pdf, .mp3, .docx, .dotx, etc.), why do web servers and email apps need to also specify a MIME type? I can see this ...
1
vote
4answers
13k views

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 ...
1
vote
1answer
610 views

ogg files return wrong mime apache. breaks firefox audio player

Hi my site is server ogg files with the mime application/x-unknown-content-type instead of application/ogg which breaks firefox's audio player. How do i get apache to serve the right mime? would it be ...
1
vote
1answer
1k views

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 ...
1
vote
2answers
704 views

Cannot load IMG without specifying extension

I just moved to a new server. All my site is including images without extensions. () but the new server doesn't seem to recognize this files unless I add each file's extension which I don't know so I ...
1
vote
1answer
321 views

Perl sendmail attach log files match date format

I want to send log files matching date format, e.g. YYYY-MM-DD-*.log as attachments in Perl script. In BASH, this can be easily done by: [ -f $DIR/explog/$(date "+%Y-%m-%d")-*-host1.log ] && ...
1
vote
1answer
363 views

Get MIME type of files served by Apache

I use an Apache server to make available J2ME application files (namely a *.jad file and a *.jar archive). Now I know that to properly serve these files you need to tell Apache what their MIME type ...
1
vote
2answers
2k views

Wrong MIME-type while uploading files

I have a problem with MIME-type while uploading a file to server from the web-interface. I used CI as engine for my website. I have FreeBSD with Apache 2.2.15 on the board. The problem is: While i ...
1
vote
1answer
652 views

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, ...
1
vote
2answers
255 views

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 ...
1
vote
1answer
892 views

Outlook Meeting Requests Not Being Re-encoded from Base 64 by Receiving Clients

Exchange 2010 + Outlook 2007. Users send outlook meeting request to a list of recipients both interanlly and externally to the organisation. Some recipients report receiving 'garbled' messages instead ...
1
vote
1answer
177 views

Do file extensions matter if you're sending the right MIME type?

I vaguely recall reading that for some audio and video file types, some browsers check not only the HTTP Content-Type header but also the file extension in the URL. Is that so? And what would happen ...
1
vote
1answer
739 views

Space a valid delimiter for email addresses in email header?

Is it syntactically correct to delimit multiple email recipients in the "To" header of an email with spaces only or do I need to use another delimiter (a semicolon or the like)? Example (MIME data ...
1
vote
2answers
645 views

IIS 6.0 receives 404 error on files with a “.” extension and nothing else

I have an issue where I am reverse proxying from an IIS 6.0 server to an apache server which is serving PNG files with no extension. Strangly it serves files with a "." but nothing else, for example: ...
1
vote
1answer
362 views

How can I edit web.config to have a different MIME type for a single XML file not others?

I am trying to set the MIME type for Flash's cross domain file in web.config. Since this file has an extension of .XML the following command will edit the MIME type of all XML documents in my site ...
1
vote
0answers
67 views

How to specify proper mime for javascript in apache?

I'm trying to set up mod_mime for javascript. My webserver returns this content-type for js files: Content-Type:application/x-javascript; charset=utf-8 so obviously the directive ExpiresByType ...
1
vote
2answers
1k views

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" ...
0
votes
3answers
2k views

.docx issue in Apache servers

What I have to write to the .htaccess file so that the visitors will be able to download .docx files?
0
votes
1answer
123 views

Nginx serves php files as plain text (Mod_Rewrite)

Grr.. Okay, I have this problem... So there is no .htaccess (Mod_Rewrite) in Nginx.. So I've converted my .htaccess to a format which can be read and placed in the default.conf. Original htaccess: ...
0
votes
1answer
1k views

How can I make all unrecognized file types as binary in Apache2?

I'm building a web server distributing variety kind of binary files. (with Ubuntu) They have vary extensions and sometimes has wrong extension. But currently, my Apache server serves unknown files as ...
0
votes
1answer
194 views

How can you send mime encoded emails on systems that do only support uuencode

If you use e.g. Solaris without additional installed software to send MIME mails: how can you send mails with MIME attachments with standard command line tools?
0
votes
3answers
2k views

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 ...
0
votes
1answer
2k views

Force Tomcat6 to server all *.manifest files as text/cache-manifest?

How do I configure tomcat to server all .manifest files as text/cache-manifest? I'm trying to create an offline cache, and this is tripping me up.
0
votes
2answers
1k views

Apache2 MIME types for js and xml

Would there be any functionality/serving problems on an Apache2 by changing the following default MIME types... .js : application/x-javascript .xml : application/xml To this... .js : ...
0
votes
1answer
200 views

How to correct the MIME type from being recognized as text/x-asm to text/css?

The styles.css file is not loading on my web page, and I am hosting on Amazon S3. It appears that my styles.css file is being recognized as text/x-asm instead of text/css as stated in my index.html ...
0
votes
1answer
577 views

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 ...
0
votes
1answer
293 views

Do SMTP servers implement 8BITMIME with anything other than UTF-8?

RFC 5321 specifies that the body of an email be encoded as 7 bit, US-ASCII. The 8BITMIME extension allow the body to be encoded as 8 bit. An SMTP server can advertise that it supports 8BITMIME in ...
0
votes
1answer
2k views

What is the mime type for ashx

I am trying to move a legacy app to iis7. I have found hundreds of posts on how to setup mime types, but not one on what exaclty the mime type for .ashx is. Also, I don't understand how aspx is being ...
0
votes
1answer
352 views

How to make IIS7 recognize specific file extensions?

I'm attempting to embed .mp4 and .webm video files in a webpage and IIS doesn't appear to be recognizing the file extensions. I read that I needed to add the MIME types for each extension in IIS. I ...
0
votes
4answers
1k views

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". ...
0
votes
2answers
519 views

Apache Rewrite Based on Mime Type

I’ve got a virtual host in my Apache config to deal with ads, spam, and malware sites. It works by having bad servers redirect to a specific loopback address that is mapped to the virtual host via the ...
0
votes
1answer
49 views

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 ...
0
votes
0answers
47 views

Incorrect mime type for CSV returned by file -i

On debian the file -i command is returning incorrect information for CSV files, when I run it the mime type is returned as below. $ file -i courses.csv courses.csv: text/plain; charset=utf-8 I've ...