How are attachments represented programmatically?
Then, set an information management policy for the content type. The thread you have mentioned is a bit misleading. The marked answer will not delete just the attachments but the whole item itself. Is this what you want? To delete just the attachments look at the answer just below the marked answer.
Incomplete list of MIME types
The code mentioned in this article should be placed in a timer job. Home Questions Tags Users Unanswered. How do I define a Content Type for Attachments?
Ask Question. Asked 4 years, 9 months ago. Active 4 years, 9 months ago.
Viewed times. I want to implement the answer found in Delete Attachment in SharePoint list : You can define a content type for attachments.
How to upload and download files using asp net and c# Part 139
Then, set an information management policy for the content type The answer seems simple enough. But how do I define a content type for the attachments?
Rich Bennema Rich Bennema 1, 6 6 silver badges 17 17 bronze badges. Arsalan Shahid Arsalan Shahid 1 1 silver badge 11 11 bronze badges. That's what I was wondering. I want to delete the attachment, but leave the list item. Deleting attachments in a timer job was my fallback plan.
E-Mail File Attachments Using MIME
But I wanted to do it in an expiration policy. It looks like a custom Expiration Action is what I want.
That's even better. There is example code over here code. It's like you're reading my mind.
Sign up or log in Sign up using Google. Sign up using Facebook.
Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. How to create micro-interactions with react-spring: Part 1.
The MIME Classes
This week, StackOverflowKnows syntactic sugar, overfit or nah, and the…. Featured on Meta.
Thank you, Robert Cartaino. Change in roles for Jon Ericson leaving SE.
Subscribe to RSS
Related 5. Hot Network Questions. Question feed.