The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
34 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 ...
0
votes
1answer
81 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 ...
1
vote
2answers
318 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 ...
0
votes
1answer
240 views

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

convert mime mails from the input stream to readable text

Can I get any help for php mime email parser/decoder like https://code.google.com/p/php-mime-mail-parser/ which does not involve any installations. I even tried Zend and decoder from phpclasses.org, ...
1
vote
2answers
214 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 ...
0
votes
1answer
456 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
148 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
1answer
203 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 ...
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 ...
2
votes
2answers
158 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 ...
5
votes
1answer
3k 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 work, 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 ...
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 ...
1
vote
2answers
589 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 ...
2
votes
2answers
680 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 ...
1
vote
1answer
286 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
320 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
65 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 ...
0
votes
0answers
322 views

Forward email with prepended content via nested parts

The task I'm trying to accomplish is to receive an email, prepend with some content, then forward it to the appropriate person. My understanding is parts can be nested ("Parts within Parts" section ...
0
votes
0answers
176 views

fresh installation of apache2 + incorrect mime types

I having issues with fresh installation of apache2 mime types for both css + javascript files apache send them with mime text/plain i have mod_mime enabled and i tried to work around with .htaccess ...
8
votes
2answers
3k 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 ...
2
votes
3answers
622 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 ...
1
vote
1answer
346 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 ...
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 ...
0
votes
0answers
523 views

Cannot upload .docx, .pptx, .xlsx file

I have an form on a server running IIS 7.5 that allows the user to attach multiple files. However I receive an error when trying to attach .docx, .pptx, and .xlsx files. I have verified the correct ...
1
vote
1answer
798 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 ...
0
votes
1answer
342 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
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
580 views

Shared host - cant add mp4 / webm MIME types to .htaccess

I am trying to serve up mp4 / webm files using the native html5 video tag but my code does not seem to work on most browsers. I have identified the problem (adding MIME types to htaccess) but am not ...
0
votes
1answer
681 views

What MIME type should I put for Windows shortcut file (.URL)

If I want to have a Windows shortcut file (foo.URL) to be saved for the users, what MIME type should I assign for it? Default text/plain causes Windows to suggest it to be saved with .txt added as ...
2
votes
3answers
852 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 ...
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 ...
1
vote
1answer
165 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
590 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 ...
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 ...
1
vote
1answer
2k 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 ...
1
vote
1answer
621 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 ...
0
votes
1answer
290 views

Does Microsoft Exchange automatically rewrite incoming HTML e-mails as multipart/alternative?

Given: If you're sending an HTML e-mail, and you'd like to avoid spam filters, it's advisable to compose your e-mail as a multi-part message and include a plain text version. My Question: Does ...
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): ...
1
vote
4answers
858 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
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 ...
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
1answer
473 views

Difference between adding MIME types in IIS via Websites vs Local Computer?

What is the difference between adding MIME types in these 2 different situations? When in IIS 6 manager... Right click on the computer name (local computer) > properties > mime types Right click on ...
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
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 : ...
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
4answers
974 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". ...
1
vote
1answer
603 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, ...
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 ...