.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Sharepoint List Attachments

Posted By:      Posted Date: September 17, 2010    Points: 0   Category :SharePoint
Hi, I have different excel, ppt documents uploaded in the sharepoint 2007 list items. I have a major problem, when i clicked on the list item it takes me to Dispform.aspx page. There's attachments shown but when i clicked on attached files, it says "Could Not open http://xxx/abc.xsl". I am not sure why this is happening. I cant even right click on the document to save it. Issue is there on the entire list. All the documents attached in the list are broken, any suggestions please.Munna

View Complete Post

More Related Resource Links

Can I import a databse from MS Access into a SharePoint list if it contains attachments?


I have 2 issues I am trying to accomplish:

Background:  I have a SharePoint list of over 8000 entries.  This list contains Text (entries) and document attachments.  The list is approximately 400MB.  I have exported the entire SharePoint list into an Access database.  I now want to import parts of the database back into seperate SharePoint lists.

Endstate:  Break the list into seperate lists.  The seperate lists will be broken down by month.  The lists need to include all content from the original list (attachements included)

Issue 1:  Can I import only selected filtered fields into SharePoint from the Access database?

Issue 2:  Can I import the selected filtered fields to include the attachements?


Opening SharePoint List Attachments - HTTP 500 Internal Server Error


We are getting "HTTP 500 - internal server error" upon opening list attachments. The list attachments are added programmatically to the list item.

This doesn't happen for all the items in the list, but only for few items.

There is no error in the SharePoint logs and the event viewer.

Has anyone encountered this issue/error?

Opening attachments to list items in SharePoint 2010



We have some sites that use lists with attachments (generally PDFs). When we click on the item and then on the attachment, we only get the option to Save or Cancel. I thought this might be related to the web applications Strict vs. Permissive setting, but it occurs even after switching the web app to permissive file handling. List attachments in Microsoft formats (word, excel) open correctly in the web apps, and PDFs in document libraries correctly show the Open option since switching the web application to permissive. Is there a way for that to affect list attachments as well?




Opening SharePoint List Attachments - HTTP 500 Internal Server Error

Hi All,


We are programmatically attaching documents/attachments to the list item through a web-part.

I'm using the below code to accomplish this. (Fileupload control is rendered in the webpart)

Stream inputStream = this.fileUploadCtrl.PostedFile.InputStream;

byte[] buffer = new byte[inputStream.Length];

inputStream.Read(buffer, 0, (int)inputStream.Length);



spListItem.Attachments.Add(this.fileUploadCtrl.PostedFile.FileName, buffer);



The attachments are getting added fine. But in some cases, only the file is attached but not the contents. when we click on the attached file name, we get the following error:


Has anyone encountered this issue? Any help is highly appreciated.



SharePoint Custom Workflows - Transfering Attachments From One List To Another?

We are trying to use a more in depth version of the Sales Lead Pipleline Template where we convert Leads to Opportuinities and then Once the Opportunity has been won it transfers the info into a Job List (Custom List) and a Work Order Assignment List (Custom Task List). We are storing the attachments related to each lead/opportuinity in the lists as well and want them to transfer with the workflow when the new list item is created after we hit the convert button. I am using SP Designer and have really modified the site and workflow but when i set the attachment settings in the workflow then return to the list and test the workflow to verify that the attachments are transfering with the rest of the data, i get an error occured on the workflow and none of the data is transfered.

Can anyone help me with this?

Ready made List Types provided by SharePoint

SharePoint provides some out of the box List Types. Some of the most used ready made list types that SharePoint provides currently are listed below:

Export SharePoint List to Excel Spreadsheet Programmatically using C#

In SharePoint applications, Custom Lists are used to store business data and Document Libraries to store the documents. But for data manupulation and analysis, Microsoft Excel provides very rich features as compared to SharePoint Lists. That's why people still loves to work on Microsoft Excel Sheets.

Creating Sites/Lists/List Items under Current User Context in SharePoint By Using SPUserToken

Usually we do this by performing the action under RunWithElevatedPrivileges method and updating the listitem using SPListItem.SystemUpdate() method (see here). but this approach has its own flaws like (RunWithElevatedPrivileges will run under system account, we cannot use SystemUpdate for SPSite,SPWeb,SPList, since it runs under system we will "CreatedBy" by as SystemAccount).

How to add custom list entries to mysite's calendar in Sharepoint 2007 site?


I would like to know below things

(1) How to create MySite for one specific member with other or administrator's access?

(2) Scenario : Administrator have created one SP2007 site. now Administrator have created one calendar (Sample calendar). Administrator have added some entries in calendar. now one user entered in portal site ansd view the calendar and he click on MySite menu. so this sample calendar entries should enter in that user's mysite calendar. How this can be achieved?

Thanks in advance.
Regards, Praful Udade

Sharepoint Blog Post List Renaming in onet.xml


Ihave created a Site definition and added a Posts Listview in the same.

<View List="$Resources:core,lists_Folder;/$Resources:core,blogpost_Folder;" BaseViewID="10" WebPartZoneID="Left" WebPartOrder="1"/>

This list is created using my own schema.xml which i have copied from the Blog site template.

I wanted to rename the title of the list [not Title field] which is coming to be Posts right now.

Is there anyway to do it?

Any help appreciated


Is there a list of the Accessibility Acts that SharePoint supports?



 Is there a list of accessibility acts that SharePoint 2007 supports.
 For example the Accessibility for Ontarians with Disabilities Act, 2005?


Thank You

Sarbjit Gill

How to join two sharepoint list in c# by CAML query?

Hii All,
   I am using wss 3.0 and i have one site and site has 4 to 5 lists. lists are interconnected with lookup column and same column. I need to display some column fron one list and some from another.. i need to join that lists by where condition like project =project..

So how can i join??

Thank You

Trying to send email using Sharepoint Designer 2007 workflow and email enabled list


I have a a list that recieves email. I have few fields that shows me the originator: "E-Mail From" and "E-Mail Sender".

I am trying to create a workflow that will generate an auto reply to the originator but the SPD fails to recognize the email address in these two fields. It's either truncating part of it or uses the html ( href=mailto:Demo@DemoSomething.com) in the To field.

Thank you,


File Attachments from info-path forms to Sharepoint document library


Hi Experts,

How to upload file attachements from info-path forms to Sharepoint document library?

I need to add attachement from local-PC/Any User to Sharepoint Document Library.


Any help please?? Appreciated




using SharePoint List for SSIS package

I need to use a sharepoint list as data source for SSIS package, it works fine until the sharepoint site implement Kerberos only (IIS 7) authentication, anyone knows how to get around this? thanks.

How to tie a dropdown list from a nother table to a dataview in sharepoint designer



i created a dataview for a user table to insert new records. now i have to use a dropdown list that get data from another table. to insert in my user table. in the user table only the code is stored. but i need to get that code description that is in another table in my dropdownlist to choose from in my dataview.

how can i do this in sharepiont designer2007?

Display tooltip for Sharepoint list items


Hi All,

I am using MOSS 2007 and my requirement is to show tooltip when I hover the mouse over the title column for each item. I am planning on storing the tooltip string for each listitem in a seperate column. Is there a way to do it. I am sure there is. Any help is greatly appreciated.

Thanks in advance!




ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend