New answers tagged

1

You can use SharePoint Column type "Publishing Hyperlink" and you can directly provide provision to user to upload attachments from SharePoint Itself. Publishing must be enabled by a site collection administrator for these column types to appear. To enable publishing, go to Settings Small Settings gear that took the place of Site Settings.> Site Settings. ...


0

You can use JSlink to make attachment download by clicking on Paper Clip Icon representing attachment. You can use the code and explaination provided in the below link. Make List Item Attachment link clickable with JSLink It works wonder.


0

You can use Event Receiver and create another list (ListA) to record your attachment link. Maybe your process is: Users add list items and attachments List event will be fired Use Event Receiver to get attachment url and then Write into ListA You also can refer to the following web site: ...


0

I think this article can help you: http://fixingsharepoint.blogspot.com.br/2014/09/sorting-sharepoint-list-item.html


0

Folks figured out my issue. The problem was the location of the file. This code worked: var attInfo = new AttachmentCreationInformation(); attInfo.FileName = StringFile.DestinationFileName; attInfo.ContentStream = new MemoryStream(System.IO.File.ReadAllBytes(StringFile.FileAtDestinationPath)); Attachment att = item.AttachmentFiles.Add(attInfo); ...


0

If you are submitting these files as attachments to a custom list, then it is not simple or easy to determine if the attachment is unique at the time they submit. However, a simple out of the box system is to enforce your Title column value to be unique. (or any multiple columns). So you should encourage your customer to come up with specific ...


1

Once you intance the item, loop within attachments collection. Sample code: SPAttachmentCollection attachments = listItem.Attachments; foreach (string attachment in attachments) { string t = SPUrlUtility.CombineUrl(listItem.Attachments.UrlPrefix, attachment ); } Source: SurPoint


-1

Here's a script I wrote that will download all attachments within a task list. It creates folders named by the ID of each task that has attachments. Please see: http://www.reality-tech.com/how-to-download-all-attachments-for-all-tasks-in-a-list/



Top 50 recent answers are included