How to create an image under Media Library programmatically?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sitecore 6? This code assumes so
This is the essence of it. Obviously (or not?), switch the template name to match what you are wanting to upload, and insert an appropriate path. If what you are uploading is coming from the live site – perhaps consider uploading hardwired to “master” database instead of context database (which would be “web”).
Hope this helps 🙂