Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I've got some list items which have manually attached (through the web interface) files and need to access these files on server-side. Whenever I look at SPListItem.Attachments though, it always shows up as empty, regardless of whether the item has an attachement or not. Can anyone think why this might be the case?

share|improve this question
    
Is this by chance an item that requires approval and is the ID that you are using to access it via the object model authorized to see unpublished versions? –  Dave Wise Aug 14 '12 at 15:16
    
I'm not sure what you mean by "requires approval". I can access the list item through the object model without issue, it's just the attachements I'm having trouble with. –  Mourndark Aug 15 '12 at 8:20
    
I know this is two years old, but any chance you remember what happened? I'm facing the same problem on SharePoint 2013. –  Armaggedon Sep 25 at 14:23
    
Not off the top of my head, I'm afraid - I don't even remember which area of the system I was working on at the time! I'll have a dig around the old code though and update accordingly. –  Mourndark Sep 25 at 15:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.