{"id":22105,"date":"2020-06-29T16:35:02","date_gmt":"2020-06-29T16:35:02","guid":{"rendered":"http:\/\/securely_uploading_images_to_cloudinary_by_email"},"modified":"2020-06-29T16:35:02","modified_gmt":"2020-06-29T16:35:02","slug":"securely_uploading_images_to_cloudinary_by_email","status":"publish","type":"post","link":"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email","title":{"rendered":"Securely Uploading Images to Cloudinary by Email With Heroku and Sendgrid"},"content":{"rendered":"<div class=\"wp-block-cloudinary-markdown \"><p>Despite United States founder Benjamin Franklin\u2019s wisdom that three can keep a secret if two of them are dead, you as developers often need contributions from third parties for your project. However, in today\u2019s digital world, security in software development is a predominant concern. With respect to management of rich media, it\u2019d be ideal if those folks could upload images or videos to your Cloudinary account without having to log in.<\/p>\n<p>This post explains how to enable third parties, including project contributors and end-users, to do that by email with <strong>free, integrated tools<\/strong>, including SendGrid, Cloudinary\u2019s email server. Actually, that basic function already exists in many electronic devices, from smartphones to smart fridges. Setting it up is a snap.<\/p>\n<h2>The Process Flow<\/h2>\n<p>First, you need an email server but with a twist. As mentioned, we at Cloudinary leverage the one from <a href=\"https:\/\/sendgrid.com\/\">SendGrid<\/a>, which accepts any email it receives and then parses it.<\/p>\n<p>Here\u2019s the process flow:<\/p>\n<ol>\n<li>A third party sends an email with an image attachment to the address you configured with your email provider.<\/li>\n<li>For each email, SendGrid creates a webhook and sends it to a Cloudinary app that\u2019s deployed on Heroku.<\/li>\n<li>The app parses the webhook and uploads the image to Cloudinary as an unsigned upload.<\/li>\n<\/ol>\n<h2>The Prerequisites<\/h2>\n<p>Following are the requirements, starting with the final destination, Cloudinary:<\/p>\n<p><strong>Note:<\/strong> Some of the steps generate parameters for the next step. We\u2019ll work on eliminating that complexity.<\/p>\n<ul>\n<li>A Cloudinary account. <a href=\"https:\/\/cloudinary.com\/users\/register\/free\">A free one will do just fine.<\/a> Log in to the dashboard and copy your Cloudinary URL from there for the next step.<\/li>\n<li>A platform on which to host your code. Even though you will execute Python code on <a href=\"https:\/\/signup.heroku.com\/\">Heroku<\/a>, any platform will do. The code repository is on GitHub. You deploy the code with just a button click with no manual efforts whatsoever.<\/li>\n<li>An email-service provider. Cloudinary has picked Twilio\u2019s <a href=\"https:\/\/signup.sendgrid.com\/\">SendGrid<\/a> as the service provider for receiving and sending emails for uploads to Cloudinary\u2019s Media Library, as described in this post. A free account will do just fine<\/li>\n<li>A registered domain. You\u2019ll need to create mail exchange (MX) records to point to the email-service provider.<\/li>\n<\/ul>\n<h2>The Procedure<\/h2>\n<p>Refer to the <a href=\"https:\/\/github.com\/cloudinary-labs\/cloudinary-email-uploader\">readme on GitHub<\/a>, which explains how the Cloudinary app cloudinary-email-uploader works with SendGrid\u2019s incoming parser to empower third parties to send email along with images to your Cloudinary account. In addition, you\u2019ll learn how to\u2014<\/p>\n<ul>\n<li>\n<p>Acquire the prerequisite free software.<\/p>\n<\/li>\n<li>\n<p>Configure and deploy cloudinary-email-uploader.<\/p>\n<\/li>\n<\/ul>\n<p>The complete code is also on <a href=\"https:\/\/github.com\/cloudinary-labs\/cloudinary-email-uploader\">GitHub<\/a>.<\/p>\n<p>Do give it a try and comment your results below.<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":41,"featured_media":22106,"comment_status":"","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_cloudinary_featured_overwrite":false,"footnotes":""},"categories":[1],"tags":[25,119],"class_list":["post-22105","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-asset-management","tag-file-upload"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.6 (Yoast SEO v26.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Securely Uploading Images to Cloudinary by Email<\/title>\n<meta name=\"description\" content=\"Learn how to enable third parties to upload images and videos to your Cloudinary Media Library by email\u2014without logging in to your Cloudinary account.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Securely Uploading Images to Cloudinary by Email With Heroku and Sendgrid\" \/>\n<meta property=\"og:description\" content=\"Learn how to enable third parties to upload images and videos to your Cloudinary Media Library by email\u2014without logging in to your Cloudinary account.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email\" \/>\n<meta property=\"og:site_name\" content=\"Cloudinary Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-29T16:35:02+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/cloudinary.com\/blog\/wp-content\/uploads\/sites\/12\/2022\/02\/Email-Uploader.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1540\" \/>\n\t<meta property=\"og:image:height\" content=\"847\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"NewsArticle\",\"@id\":\"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email#article\",\"isPartOf\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email\"},\"author\":{\"name\":\"\",\"@id\":\"\"},\"headline\":\"Securely Uploading Images to Cloudinary by Email With Heroku and Sendgrid\",\"datePublished\":\"2020-06-29T16:35:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email\"},\"wordCount\":11,\"publisher\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email#primaryimage\"},\"thumbnailUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649720095\/Web_Assets\/blog\/Email-Uploader_22106e86dc\/Email-Uploader_22106e86dc.png?_i=AA\",\"keywords\":[\"Asset Management\",\"File-upload\"],\"inLanguage\":\"en-US\",\"copyrightYear\":\"2020\",\"copyrightHolder\":{\"@id\":\"https:\/\/cloudinary.com\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email\",\"url\":\"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email\",\"name\":\"Securely Uploading Images to Cloudinary by Email\",\"isPartOf\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email#primaryimage\"},\"thumbnailUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649720095\/Web_Assets\/blog\/Email-Uploader_22106e86dc\/Email-Uploader_22106e86dc.png?_i=AA\",\"datePublished\":\"2020-06-29T16:35:02+00:00\",\"description\":\"Learn how to enable third parties to upload images and videos to your Cloudinary Media Library by email\u2014without logging in to your Cloudinary account.\",\"breadcrumb\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email#primaryimage\",\"url\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649720095\/Web_Assets\/blog\/Email-Uploader_22106e86dc\/Email-Uploader_22106e86dc.png?_i=AA\",\"contentUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649720095\/Web_Assets\/blog\/Email-Uploader_22106e86dc\/Email-Uploader_22106e86dc.png?_i=AA\",\"width\":1540,\"height\":847},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cloudinary.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Securely Uploading Images to Cloudinary by Email With Heroku and Sendgrid\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#website\",\"url\":\"https:\/\/cloudinary.com\/blog\/\",\"name\":\"Cloudinary Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cloudinary.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#organization\",\"name\":\"Cloudinary Blog\",\"url\":\"https:\/\/cloudinary.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA\",\"contentUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA\",\"width\":312,\"height\":60,\"caption\":\"Cloudinary Blog\"},\"image\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Securely Uploading Images to Cloudinary by Email","description":"Learn how to enable third parties to upload images and videos to your Cloudinary Media Library by email\u2014without logging in to your Cloudinary account.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email","og_locale":"en_US","og_type":"article","og_title":"Securely Uploading Images to Cloudinary by Email With Heroku and Sendgrid","og_description":"Learn how to enable third parties to upload images and videos to your Cloudinary Media Library by email\u2014without logging in to your Cloudinary account.","og_url":"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email","og_site_name":"Cloudinary Blog","article_published_time":"2020-06-29T16:35:02+00:00","og_image":[{"width":1540,"height":847,"url":"http:\/\/cloudinary.com\/blog\/wp-content\/uploads\/sites\/12\/2022\/02\/Email-Uploader.png","type":"image\/png"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email#article","isPartOf":{"@id":"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email"},"author":{"name":"","@id":""},"headline":"Securely Uploading Images to Cloudinary by Email With Heroku and Sendgrid","datePublished":"2020-06-29T16:35:02+00:00","mainEntityOfPage":{"@id":"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email"},"wordCount":11,"publisher":{"@id":"https:\/\/cloudinary.com\/blog\/#organization"},"image":{"@id":"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email#primaryimage"},"thumbnailUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649720095\/Web_Assets\/blog\/Email-Uploader_22106e86dc\/Email-Uploader_22106e86dc.png?_i=AA","keywords":["Asset Management","File-upload"],"inLanguage":"en-US","copyrightYear":"2020","copyrightHolder":{"@id":"https:\/\/cloudinary.com\/#organization"}},{"@type":"WebPage","@id":"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email","url":"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email","name":"Securely Uploading Images to Cloudinary by Email","isPartOf":{"@id":"https:\/\/cloudinary.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email#primaryimage"},"image":{"@id":"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email#primaryimage"},"thumbnailUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649720095\/Web_Assets\/blog\/Email-Uploader_22106e86dc\/Email-Uploader_22106e86dc.png?_i=AA","datePublished":"2020-06-29T16:35:02+00:00","description":"Learn how to enable third parties to upload images and videos to your Cloudinary Media Library by email\u2014without logging in to your Cloudinary account.","breadcrumb":{"@id":"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email#primaryimage","url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649720095\/Web_Assets\/blog\/Email-Uploader_22106e86dc\/Email-Uploader_22106e86dc.png?_i=AA","contentUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649720095\/Web_Assets\/blog\/Email-Uploader_22106e86dc\/Email-Uploader_22106e86dc.png?_i=AA","width":1540,"height":847},{"@type":"BreadcrumbList","@id":"https:\/\/cloudinary.com\/blog\/securely_uploading_images_to_cloudinary_by_email#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cloudinary.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Securely Uploading Images to Cloudinary by Email With Heroku and Sendgrid"}]},{"@type":"WebSite","@id":"https:\/\/cloudinary.com\/blog\/#website","url":"https:\/\/cloudinary.com\/blog\/","name":"Cloudinary Blog","description":"","publisher":{"@id":"https:\/\/cloudinary.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cloudinary.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/cloudinary.com\/blog\/#organization","name":"Cloudinary Blog","url":"https:\/\/cloudinary.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA","contentUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA","width":312,"height":60,"caption":"Cloudinary Blog"},"image":{"@id":"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":""}]}},"jetpack_featured_media_url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649720095\/Web_Assets\/blog\/Email-Uploader_22106e86dc\/Email-Uploader_22106e86dc.png?_i=AA","_links":{"self":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts\/22105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/comments?post=22105"}],"version-history":[{"count":0,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts\/22105\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/media\/22106"}],"wp:attachment":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/media?parent=22105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/categories?post=22105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/tags?post=22105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}