content-type

Jboss returns no content-type for MSI

I have placed a .MSI-file in the folder C:\JBoss\server\default\deploy\install.war on my web server which is running Jboss. The idea is that web page visitors should be able to download the file by visiting http://example.com/install/file.msi. Now, if a user goes to to this URL with his web browser, instead of getting a "Do you want to ...

How does Response.ContentType work?

I am downloading an xml string from ASP.Net and want it to open in MS Office Infopath. I set the ContentType to "application/ms-infopath.xml" (not sure where I got that from). On some machines it is fine, on others the xml opens in the browser, or in Visual Studio or some other xml editor, even though Infopath is present. Who keeps th...

Unable to delete content type from a Sharepoint list programmatically

Hi all: I'm currently having trouble deleting a content type from a Sharepoint list programmatically. What I wanted to do is that I want to install a newer version of a custom content type (it has extra fields), so I opted to delete the original one and re-add the latest one. Below is the code: bool requireUpdate = false SPContentTyp...

Broken view in drupal - there is empty white area

Hi, I'm newbie and I'm trying to solve my problem for 2 days already! Im desperate! I've got a Content Type let's say X. I don't want to see this X on my website by default, only if someone searches for it. I added a filter to Views not to display content type X. It works ... it is not displayed, but instead there are empty white blank...

How to use Filefield to upload a file to shrarepoint

I am rendering the fields of a selected content type (spcontrolmode=new). The name field is rendered as a FileField where i can select a local file. How to upload this local file to sharepoint, using this FileField? i tried to parse it to a FileUpload control, but its impossible. Thanks. ...

What content-type do I use for http response headers that contain a file attachment of unknown file type?

Right now I am not specifying it and the system is defaulting to text/html which is causing some not so good results like downloading a movie on my iPhone is giving me a massive block of text so large that it crashes the browser for example. What content-type should I use? It could literally be any file type as the attachment. Content-di...

UTF-8 content type meta tag is slowing down the page loading, why?

I'm setting the following meta tag to set the content type and in doing so the page load time jumps by about 30% (350 --> 500 msec using chrome dev tools and firefox firebug). Note: I have it placed first thing inside the tag to prevent re-rendering of page content. Also, the size of the page in kb is essentially the same, so that is no...

android to appEngine image content type

I'm sending an image from an Android phone to an AppEngine. The AppEngine is throwing content exceptions. My process of elimination has failed so I suspect I've done something larger wrong. Do I have a content type problem or a larger problem? The AppEngine log shows the following errors depending on the content type [content type -->...

Asian characters in IE 8 get garbled in Server; is this due to HTTP header Content-Type?

One of the request parameters in an http request made by the client contains Japanese characters. If I make this request in Firefox and look at the parameter as soon as it reaches the server by debugging in Eclipse, the characters look fine. If I do the same request using IE 8, the characters get garbled when I look at them at the same p...

PHP ImageFilter

I have writen a small script to go in a Facebook App that can filter images for you. I am having trouble with the GRAYSCALE filter It seems to only display what I think is byte code for the image, instead of the image. I think this may have something to do with the headers and content type. I need to display the image filtered by PHP wit...

SMTP multipart/alternative vs multipart/mixed

When sending SMTP messages you are supposed to set the Content-Type to multipart/alternative when sending HTML and TEXT or multipart/mixed when sending TEXT and attachements. So what do you do if you want to send HTML, Text, and attachements? Use both? ...

Force type and content type

I have a folder with some sql files that I would like to be processed as PHP and I would like the output to be text/plain. I can force sql files to be processed by PHP like this: <FilesMatch "\.sql$"> ForceType application/x-httpd-php </FilesMatch> Is there a way I can set the default content-type when these files are served to be...

joomla: How to force a php webpage to save as a pdf file

As an example, I have actually been able to generate excel files by changing the content-type for an html document. In this scenario, I would use php to generate the table cells with information gathered from the database and then set the content-type before the page is rendered. Is there a way to do this for pdf's? ...

URLConnection does not get the charset

I'm using URL.openConnection() to download something from a server. The server says Content-Type: text/plain; charset=utf-8 But connection.getContentEncoding() returns null. What up? ...

New CCK fileds not showing up on Creat Content form

I have created new fields for a CCK content type. They were showing up before just fine. Now nothing. The only thing I did differently was delete some fields before adding the new ones. I can see the columns in the content type table. They are just not showing up in the Create Content form. Any help on this would be greatly appreciated. ...

Using a UUID as a primary key in Django models (generic relations impact)

For a number of reasons^, I'd like to use a UUID as a primary key in some of my Django models. If I do so, will I still be able to use outside apps like "contrib.comments", "django-voting" or "django-tagging" which use generic relations via ContentType? Using "django-voting" as an example, the Vote model looks like this: class Vote(mod...

Drupal 6: Search index and custom content types

Sorry, if question is too obvious — does Drupal 6 index nodes with custom content types, not only story, page, etc.? ...

How to combine standard content type with customized hook_access() ?

I am happy with the standard Page and Story content types. Still I need more control over the access control. I would like to write my own access control. I like the concept of the hook_access() for controlling access to the content types you build your self. Do I have a hook_access() available when I am using my content type? ...

IIS7 overwriting defined HTTP header values

I am attempting to set the content-type of an asp.net .ashx file to text/plain. When I run this through the ASP.NET Development Server, the content-type is properly set. When I serve it through IIS7, however, the content-type (and any other header values I set) don't come through (it came through as text/html). The only value set in ...

Outlook encoding html email as text

I using MAPI to create a html email with Outlook 2010. Simple bit of html which just shows an image However when outlook sends the email it sends it as text, so that the image doesn't appear inline but as an attachment. The email content-type is multipart/related, however the first part is text/plain instead of text/html. Why is outlo...