Hello everybody,
I'm getting an anoying problem in IE6.02 when trying to download a file through flex + struts action, the browser opens a new window and doesn't close it after the download has finished.
The flex code is:
navigateToURL(url,"_blank");
The content headers are:
HTTP/1.x 200 OK
Date: Thu, 29 Oct 2009 22:00:44 GMT
Transf...
Hi!
I have a byte array filled from a file uploaded. But, in another part of the code, I need to know this file type uploaded from the byte[] so I can render the correct content-type to browser!
Thanks!!
...
Is it possible to create more than just 1 content type with just one feature in Sharepoint?
I've a got a project where a couple of content types inherits from another one and I have 5 features just creating those content types.
...
I'm developing a front-end to a Rails application. In cross-browser testing, I immediately discovered that Internet Explorer (apparently all modern versions, but at least IE 7 and IE 8) is not correctly interpreting a file I'm trying to load via AJAX (with jQuery) as JavaScript. A file download warning appears and the user needs to confi...
Users seems to have a hard time picking the right document template when the "New" list contains a lot of items.
Rather then displaying 50 items in the "new" dropdown list I am looking for a solution that will only show the documents which is relevant at the moment. I have a "Life cycle" choice field in another list and only a subset of...
Given an SPListItem representing a folder, I need to find out whether it has the builtin folder content type, or a custom folder content type (with additional fields).
Here is what I do
SPContentType folderType = aFolderItem.Web.AvailableContentTypes[SPBuiltInContentTypeId.Folder];
SPContentType contentType = aFolderItem.Conten...
If I put the following code:
Response.ContentType = "image/jpeg"
Response.AppendHeader("Content-Disposition", "attachment; filename=capitol.jpg")
Response.WriteFile(MapPath("capitol.jpg"))
into Page_Load, I will get the dialog box to download the image. But when I put the same code into a sub routine:
Private Sub downloa...
I've got a custom list with a custom content type. I'm aware that when you create a new item you can see a drop down for the different content types on that list which I assume all have their own NewForm.aspx somewhere. I can specify in the content type definition which columns are shown on the New form and that I can replace the new for...
Hi everybody!
I have the code which going through the sharepoint contenttypes and changes needed field display names. On my local server everything works fine, but on the client side it gives me an error:
Microsoft.SharePoint.SPException: Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT)) ---> System.Runtime.InteropServic...
sending an email:
From: <...>
X-Mailer: SnowBoss
Reply-To: <...>
X-Priority: 3 (Normal)
Message-ID: <[email protected]>
To: <...>
Subject: =?UTF-8?B?0JzQntCZIFNVQkpFQ1Q=?=
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----------A4D921C2D10D7DB"
This is a multi-part message in MIME format.
---------...
I have asked this question here about a Python command that fetches a URL of a web page and stores it in a variable. The first thing that I wanted to know then was whether or not the variable in this code contains the HTML code of a web-page:
from google.appengine.api import urlfetch
url = "http://www.google.com/"
result = urlfetch.fetc...
In Firefox, whenever I request a page that returns a Content-type of "application/json", Firefox saves the file into /tmp but then says "/tmp/json.php could not be opened, because the associated helper application does not exist. Change the association in your preferences." Well, I go into Edit > Preferences > Applications, and there's ...
Is there a command-line tool that sniffs video/audio files and generates detailed content-type strings for them, in the format specified in the HTML5 spec and in RFC4281?
I want to use this serverside to avoid recoding of uploaded MP4 and OGG files whenever the encoding is supported by HTML5 browsers. Video hosting sites have opted to r...
Is there any built in function that returns the content type based on the file extension?
...
I am trying to create an ActionResult that behaves in exactly the same manner as a ViewResult but allows me to specify the Content-Type header. This is difficult because from what I can tell ASP.Net MVC hands off to the webforms rendering engine, which then sets the content type using the header on the page, this method isn't viable for ...
Hello - I'm trying to add a column to a document library in MOSS 2007 that will reflect the date that the document was last checked in and then have that date reflected within the document as a Field or Label. I'm trying to avoid the Modified date and only have it populate the date of last check in.
Check Out is required in the library ...
I have a page in JSP that list some file that could be downloaded by a user.
Thoses files are not on the local server, they are on a remote file server.
When the user click to download a file, the webserver connect via TCP to the file server. The web server download the file and create a HTTP response for the client.
Here is my code:
...
Short version of the question:
Does "GET" at a particular URI need to match what was "PUT" to that URI?
I think not. Here's why:
Given that a resource is an abstract thing that is theoretically unknowable by the client, when we do a PUT, we must be only sending a representation. Based on combing over RFC2616, it doesn't seem entirely...
On a Drupal 6 site, I have a 'moderator' role, who worka with an 'article' content type.
I want the moderators to be able to see the list of published/unpublished articles, and have the option to edit the articles (and change their 'published' status).
I do not want, however, for moderators to be able to edit (or see the list of) any oth...
I am installing a content type as a feature, below is the content type schema. Note that it is inherited from base Item content type.
<ContentType ID="0x010089D9A70BCA774310BCC5DF7D0690843E"
Name="CustomItem"
Group="Annual Leave Request"
Description="Custom Item Type"
Version="0">
<FieldRefs>
<FieldRef ID="{...