{"id":27814,"date":"2017-12-22T20:29:55","date_gmt":"2017-12-22T20:29:55","guid":{"rendered":"https:\/\/dev.railscarma.com\/upload-files-directly-s3-using-paperclip-dropzone-js\/"},"modified":"2021-06-05T07:04:12","modified_gmt":"2021-06-05T07:04:12","slug":"ladda-upp-filer-direkt-s3-med-gem-dropzone-js","status":"publish","type":"post","link":"https:\/\/www.railscarma.com\/sv\/blogg\/tekniska-artiklar\/ladda-upp-filer-direkt-s3-med-gem-dropzone-js\/","title":{"rendered":"Ladda upp filer direkt till S3 med gem och Dropzone.js"},"content":{"rendered":"<div data-elementor-type=\"wp-post\" data-elementor-id=\"27814\" class=\"elementor elementor-27814\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2c821db0 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2c821db0\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-475f1c5e\" data-id=\"475f1c5e\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a9dd12a elementor-widget elementor-widget-text-editor\" data-id=\"a9dd12a\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\n<p>Det \u00e4r oftast de sm\u00e5 tidskr\u00e4vande uppgifterna som frustrerar oss mest. Som att ladda upp en fil till S3; Kravet \u00e4r ganska enkelt men metoden som v\u00e4ljs f\u00f6r att ladda upp filen kommer att avg\u00f6ra uppgiftens effektivitet. Eftersom uppladdning av filer \u00e4r en funktion som de flesta applikationer kr\u00e4ver, har RailsCarma sammanst\u00e4llt en kort handledning om en av de b\u00e4sta metoderna f\u00f6r att f\u00e5 den h\u00e4r uppgiften effektiv: att anv\u00e4nda Paperclip och Dropzone.js.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Gem<\/strong> \u00e4r ett popul\u00e4rt val f\u00f6r att ladda upp bilder och filer eftersom det erbjuder fantastiska funktioner f\u00f6r att hantera bilagorna; &#039;gems&#039; p\u00e4rla \u00e4r det b\u00e4sta alternativet. Gem l\u00e5ter dig ladda upp flera bilder och filer, generera miniatyrer och till och med automatiskt \u00e4ndra storlek p\u00e5 bilderna. Den har ett stort och aktivt community som g\u00f6r det till det b\u00e4sta valet f\u00f6r de flesta utvecklare.<\/li><li><strong>Dropzone.js<\/strong> \u00e4r ett bibliotek med \u00f6ppen k\u00e4llkod med funktioner f\u00f6r att dra och sl\u00e4ppa filer (med f\u00f6rhandsgranskning).<\/li><li><strong>Amazon S3<\/strong> \u00e4r en enkel lagringsenhet f\u00f6r datalagring. Vi kan anv\u00e4nda den f\u00f6r att h\u00e4mta bilder och alla typer av filer.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Varf\u00f6r Gem?<\/strong><\/h3>\n\n\n\n<p>Gem \u00e4r ett popul\u00e4rt filuppladdningsverktyg av f\u00f6ljande sk\u00e4l:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>St\u00f6der filcache:<\/strong><br>Om ett formul\u00e4r inte valideras vill vi inte att anv\u00e4ndaren ska v\u00e4lja sin fil igen och ladda upp den igen. D\u00e4rf\u00f6r \u00e4r filcachel\u00e4ggning n\u00f6dv\u00e4ndig ur UX-synpunkt. Och det sparar ocks\u00e5 bandbredden.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Bearbetar bilder<\/strong><br>Paperclip kan \u00e4ndra storlek och besk\u00e4ra bilder till flera olika format, vilket g\u00f6r att utvecklaren kan v\u00e4lja bibliotek.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>F\u00f6renklar uppgiften!<\/strong><br>Gem gem f\u00f6rorenar inte din kod och \u00e4r l\u00e4tt att testa!<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Till\u00e5ter filbehandling<\/strong><br>Paperclip till\u00e5ter filbearbetning f\u00f6r EXIF-dataextraktion och skapande av miniatyrbilder av uppladdade PDF-filer, PSD-filer, DOC-filer, XLSX-filer.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Ger support f\u00f6r CDN och lagringstj\u00e4nster&nbsp;<\/strong><br>Detta \u00e4r ett stort plus d\u00e5 vi vill h\u00e5lla bandbredden till v\u00e5ra servrar s\u00e5 l\u00e5g som m\u00f6jligt och undvika eventuell dataf\u00f6rlust p\u00e5 grund av serverfel.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Erbjuder On-The-Fly Processing<\/strong><br>Paperclip bearbetar bilder och filer p\u00e5 en beg\u00e4ran. Detta \u00e4r en innovativ funktion som g\u00f6r det m\u00f6jligt f\u00f6r utvecklare att skapa anpassat inneh\u00e5ll som anpassar sig b\u00e4st till olika situationer.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Vad \u00e4r Dropzone asynkrona h\u00e4ndelser?<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>tillagd fil:<\/strong>&nbsp; N\u00e4r en fil l\u00e4ggs till i listan.<\/li><li><strong>borttagen fil:<\/strong> Anv\u00e4nds n\u00e4r en fil tas bort fr\u00e5n listan. Du kan lyssna p\u00e5 detta och ta bort filen fr\u00e5n din server om du vill.<\/li><li><strong>Miniatyr:<\/strong> N\u00e4r miniatyrbilden har skapats. Den tar emot data-URL som andra parameter.<\/li><li><strong>fel:<\/strong> Ett fel intr\u00e4ffade f\u00e5r felmeddelandet som den andra parametern. Och om felet berodde p\u00e5 xmlhttprequest, tas xhr-objektet emot som den tredje parametern.<\/li><li><strong>bearbetning:<\/strong> N\u00e4r en fil bearbetas (eftersom det finns en k\u00f6, bearbetas inte alla filer omedelbart). Denna h\u00e4ndelse kallades tidigare processingfile.<\/li><li><strong>sl\u00e4ppa:<\/strong> Anv\u00e4ndaren tappade n\u00e5got p\u00e5 droppzonen.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Hur kan vi konfigurera gem i v\u00e5r applikation?<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>has_attached _file: tillg\u00e5ng<\/li><li>:lagring =&gt; :s3<\/li><li>:S3_host_name =&gt; ENV[\u201cS3_HOST_NAME\u201d]<\/li><li>:S3_region =&gt; ENV[\u201cS3_REGION\u201d]<\/li><li>:S3_protocol =&gt; ENV[\u201cS3_PROTOCOL\u201d]<\/li><li>:s\u00f6kv\u00e4g =&gt; \u201c:account_id\/:class\/:source_id\/:attachment\/:file_name\u201d,:s3_headers =&gt; {&#039;ContentDisposition&#039; =&gt; &#039;attachment&#039;, &#039;content-type&#039; =&gt;&#039;applikation\/octet_stream&#039;},<br>:hink =&gt; ENV[\u201cS3_BUCKET\u201d],<br>:s3_credentials =&gt; Proc.new{|a| a.instance.s3_credentials}<\/li><li>Do_not_validate_attachment_file_type :tillg\u00e5ng<\/li><li>def s3_credentials<br>{:access_key_id =&gt; ENV[\u201cS3_ACCESS_KEY_ID\u201d], :secret_access_key =&gt; ENV[\u201cS3_SECRET_ACCESS_KEY\u201d]}<\/li><\/ul>\n\n\n\n<p>slutet<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Hur kan vi hantera anpassade s\u00f6kv\u00e4gar i v\u00e5r applikation?<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>Paperclip.interpolates :attachment do |attachment, style|Image_extension = [\u201cjpg\u201d, \u201cjpeg\u201d, \u201cgif\u201d, \u201cpng\u201d, \u201cPNG\u201d, \u201cGIF\u201d, \u201cJPEG\u201d, \u201cJPG\u201d]\nextname = File.extname(attachment.instance.asset_file_name).downcase.gsub(\/\\.\/, \u2018\u2019)\nif img_extension.include? (extname)\nreturn \u201cimages\u201d\nelse\nreturn extname\nend\nend\nPaperclip.interpolates :file_name do |attachment, style|file_name = attachment.instance.asset_file_name\nEnd<\/code><\/pre>\n\n\n\n<p>Data i S3-skopan kan h\u00e4mtas n\u00e4r det beh\u00f6vs. Men det har en begr\u00e4nsning: att hantera anpassade s\u00f6kv\u00e4gar f\u00f6r olika katalogstrukturer kan vara ganska besv\u00e4rligt. Gem kan vara anv\u00e4ndbart i s\u00e5dana situationer. Det \u00e4r ett utm\u00e4rkt verktyg f\u00f6r att ladda upp och lagra bilder i S3-bucket med AWS.<\/p>\n\n\n\n<p>P\u00e5 <a href=\"https:\/\/www.railscarma.com\/sv\/\" target=\"_blank\" rel=\"noreferrer noopener\">Railscarma<\/a>, utvecklar och tillhandah\u00e5ller vi banbrytande webbapplikationstj\u00e4nster med hj\u00e4lp av rubys ramverk f\u00f6r v\u00e5ra kunder \u00f6ver hela v\u00e4rlden.<br>Vill du ha innovativa l\u00f6sningar f\u00f6r alla andra problem med r\u00e4lsutveckling? <a href=\"\/sv\/kontakta-oss\/\" target=\"_blank\" rel=\"noreferrer noopener\">Kontakta oss nu<\/a>!<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-619ac7f4 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"619ac7f4\" data-element_type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7aa58ff8\" data-id=\"7aa58ff8\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-46be78ec elementor-widget elementor-widget-heading\" data-id=\"46be78ec\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Prenumerera f\u00f6r de senaste uppdateringarna<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-450fc94f elementor-widget elementor-widget-shortcode\" data-id=\"450fc94f\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\t\t\t\t\t<script type=\"text\/javascript\">\n\t\t\t\t\t\tvar gCaptchaSibWidget;\n                        var onloadSibCallbackInvisible = function () {\n\n                            var element = document.getElementsByClassName('sib-default-btn');\n                            var countInvisible = 0;\n                            var indexArray = [];\n                            jQuery('.sib-default-btn').each(function (index, el) {\n                                if ((jQuery(el).attr('id') == \"invisible\")) {\n                                    indexArray[countInvisible] = index;\n                                    countInvisible++\n                                }\n                            });\n\n                            jQuery('.invi-recaptcha').each(function (index, el) {\n                                grecaptcha.render(element[indexArray[index]], {\n                                    'sitekey': jQuery(el).attr('data-sitekey'),\n                                    'callback': sibVerifyCallback,\n                                });\n                            });\n                        };\n\t\t\t\t\t<\/script>\n\t\t\t\t\t                <script src=\"https:\/\/www.google.com\/recaptcha\/api.js?onload=onloadSibCallbackInvisible&render=explicit\" async defer><\/script>\n\t\t\t\t\n\t\t\t<form id=\"sib_signup_form_1\" method=\"post\" class=\"sib_signup_form\" action=\"\">\n\t\t\t\t<div class=\"sib_loader\" style=\"display:none;\"><img\n\t\t\t\t\t\t\tsrc=\"https:\/\/www.railscarma.com\/wp-includes\/images\/spinner.gif\" alt=\"lastare\"><\/div>\n\t\t\t\t<input type=\"hidden\" name=\"sib_form_action\" value=\"subscribe_form_submit\">\n\t\t\t\t<input type=\"hidden\" name=\"sib_form_id\" value=\"1\">\n                <input type=\"hidden\" name=\"sib_form_alert_notice\" value=\"Please fill out this field\">\n                <input type=\"hidden\" name=\"sib_form_invalid_email_notice\" value=\"Your email address is invalid\">\n                <input type=\"hidden\" name=\"sib_security\" value=\"d7f7626ab9\">\n\t\t\t\t<div class=\"sib_signup_box_inside_1\">\n\t\t\t\t\t<div style=\"\/*display:none*\/\" class=\"sib_msg_disp\">\n\t\t\t\t\t<\/div>\n                                            <div id=\"sib_captcha_invisible\" class=\"invi-recaptcha\" data-sitekey=\"6LdikOAaAAAAAJ6SWrrKVQrtw7TQpQAEnv0HS0G3\"><\/div>\n                    \t\t\t\t\t<p class=\"sib-email-area\">\r\n    <label class=\"sib-email-area\"><\/label>\r\n    <input type=\"email\" class=\"sib-email-area\" name=\"email\" required=\"required\" placeholder=\"E-postadress\">\r\n<\/p>\r\n<p class=\"sib-NAME-area\">\r\n    <label class=\"sib-NAME-area\"><\/label>\r\n    <input type=\"text\" class=\"sib-NAME-area\" name=\"NAME\" placeholder=\"namn\">\r\n<\/p>\r\n<p>\r\n    <input type=\"submit\" id=\"invisible\" class=\"sib-default-btn\" value=\"Prenumerera\">\r\n<\/p>\t\t\t\t<\/div>\n\t\t\t<input type=\"hidden\" name=\"trp-form-language\" value=\"sv\"\/><\/form>\n\t\t\t<style>\n\t\t\t\tform#sib_signup_form_1 p.sib-alert-message {\n    padding: 6px 12px;\n    margin-bottom: 20px;\n    border: 1px solid transparent;\n    border-radius: 4px;\n    -webkit-box-sizing: border-box;\n    -moz-box-sizing: border-box;\n    box-sizing: border-box;\n}\nform#sib_signup_form_1 p.sib-alert-message-error {\n    background-color: #f2dede;\n    border-color: #ebccd1;\n    color: #a94442;\n}\nform#sib_signup_form_1 p.sib-alert-message-success {\n    background-color: #dff0d8;\n    border-color: #d6e9c6;\n    color: #3c763d;\n}\nform#sib_signup_form_1 p.sib-alert-message-warning {\n    background-color: #fcf8e3;\n    border-color: #faebcc;\n    color: #8a6d3b;\n}\n\t\t\t<\/style>\n\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t  <div class=\"related-post slider\">\r\n        <div class=\"headline\">relaterade inl\u00e4gg<\/div>\r\n    <div class=\"post-list owl-carousel\">\r\n\r\n            <div class=\"item\">\r\n            <div class=\"thumb post_thumb\">\r\n    <a  title=\"Kaminari Gem\" href=\"https:\/\/www.railscarma.com\/sv\/blogg\/tekniska-artiklar\/kaminari-parla\/?related_post_from=37277\">\r\n\r\n      <img decoding=\"async\" width=\"800\" height=\"300\" src=\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2023\/04\/kaminari-gem.jpg\" class=\"attachment-full size-full wp-post-image\" alt=\"kaminari p\u00e4rla\" srcset=\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2023\/04\/kaminari-gem.jpg 800w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2023\/04\/kaminari-gem-300x113.jpg 300w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2023\/04\/kaminari-gem-768x288.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\r\n\r\n    <\/a>\r\n  <\/div>\r\n\r\n  <a class=\"title post_title\"  title=\"Kaminari Gem\" href=\"https:\/\/www.railscarma.com\/sv\/blogg\/tekniska-artiklar\/kaminari-parla\/?related_post_from=37277\">\r\n        Kaminari Gem  <\/a>\r\n\r\n        <\/div>\r\n              <div class=\"item\">\r\n            <div class=\"thumb post_thumb\">\r\n    <a  title=\"Varf\u00f6r anst\u00e4lla Ruby on Rails-utvecklare 2026?\" href=\"https:\/\/www.railscarma.com\/sv\/blogg\/ror\/varfor-anlita-utvecklare-av-ruby-on-rails\/?related_post_from=30627\">\r\n\r\n      <img decoding=\"async\" width=\"800\" height=\"300\" src=\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2019\/01\/why-to-hire-ruby-on-rails-developers-in-2022.jpg\" class=\"attachment-full size-full wp-post-image\" alt=\"varf\u00f6r anlita utvecklare av ruby on rails 2022\" srcset=\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2019\/01\/why-to-hire-ruby-on-rails-developers-in-2022.jpg 800w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2019\/01\/why-to-hire-ruby-on-rails-developers-in-2022-300x113.jpg 300w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2019\/01\/why-to-hire-ruby-on-rails-developers-in-2022-768x288.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\r\n\r\n    <\/a>\r\n  <\/div>\r\n\r\n  <a class=\"title post_title\"  title=\"Varf\u00f6r anst\u00e4lla Ruby on Rails-utvecklare 2026?\" href=\"https:\/\/www.railscarma.com\/sv\/blogg\/ror\/varfor-anlita-utvecklare-av-ruby-on-rails\/?related_post_from=30627\">\r\n        Varf\u00f6r anst\u00e4lla Ruby on Rails-utvecklare 2026?  <\/a>\r\n\r\n        <\/div>\r\n              <div class=\"item\">\r\n            <div class=\"thumb post_thumb\">\r\n    <a  title=\"Dataskrapning i skenor genom att bearbeta CSV\" href=\"https:\/\/www.railscarma.com\/sv\/blogg\/tekniska-artiklar\/dataskrapning-i-skenor-genom-att-bearbeta-csv\/?related_post_from=31591\">\r\n\r\n      <img decoding=\"async\" width=\"800\" height=\"300\" src=\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2020\/09\/DATA-SCRAPING-IN-RAILS-BY-PROCESSING-CSV.png\" class=\"attachment-full size-full wp-post-image\" alt=\"\" srcset=\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2020\/09\/DATA-SCRAPING-IN-RAILS-BY-PROCESSING-CSV.png 800w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2020\/09\/DATA-SCRAPING-IN-RAILS-BY-PROCESSING-CSV-300x113.png 300w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2020\/09\/DATA-SCRAPING-IN-RAILS-BY-PROCESSING-CSV-768x288.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\r\n\r\n    <\/a>\r\n  <\/div>\r\n\r\n  <a class=\"title post_title\"  title=\"Dataskrapning i skenor genom att bearbeta CSV\" href=\"https:\/\/www.railscarma.com\/sv\/blogg\/tekniska-artiklar\/dataskrapning-i-skenor-genom-att-bearbeta-csv\/?related_post_from=31591\">\r\n        Dataskrapning i skenor genom att bearbeta CSV  <\/a>\r\n\r\n        <\/div>\r\n              <div class=\"item\">\r\n            <div class=\"thumb post_thumb\">\r\n    <a  title=\"Ring r\u00f6stsamtal genom Ruby on Rails webbapplikationer\" href=\"https:\/\/www.railscarma.com\/sv\/blogg\/tekniska-artiklar\/ringa-rostsamtal-genom-ruby-on-rails-webbapplikationer\/?related_post_from=31309\">\r\n\r\n      <img decoding=\"async\" width=\"800\" height=\"300\" src=\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2020\/07\/MAKE-VOICE-CALLS-THROUGH-RUBY-ON-RAILS-WEB-APPLICATIONS.png\" class=\"attachment-full size-full wp-post-image\" alt=\"\" srcset=\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2020\/07\/MAKE-VOICE-CALLS-THROUGH-RUBY-ON-RAILS-WEB-APPLICATIONS.png 800w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2020\/07\/MAKE-VOICE-CALLS-THROUGH-RUBY-ON-RAILS-WEB-APPLICATIONS-300x113.png 300w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2020\/07\/MAKE-VOICE-CALLS-THROUGH-RUBY-ON-RAILS-WEB-APPLICATIONS-768x288.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\r\n\r\n    <\/a>\r\n  <\/div>\r\n\r\n  <a class=\"title post_title\"  title=\"Ring r\u00f6stsamtal genom Ruby on Rails webbapplikationer\" href=\"https:\/\/www.railscarma.com\/sv\/blogg\/tekniska-artiklar\/ringa-rostsamtal-genom-ruby-on-rails-webbapplikationer\/?related_post_from=31309\">\r\n        Ring r\u00f6stsamtal genom Ruby on Rails webbapplikationer  <\/a>\r\n\r\n        <\/div>\r\n      \r\n  <\/div>\r\n\r\n  <script>\r\n      <\/script>\r\n  <style>\r\n    .related-post {}\r\n\r\n    .related-post .post-list {\r\n      text-align: left;\r\n          }\r\n\r\n    .related-post .post-list .item {\r\n      margin: 10px;\r\n      padding: 10px;\r\n          }\r\n\r\n    .related-post .headline {\r\n      font-size: 14px !important;\r\n      color: #999999 !important;\r\n          }\r\n\r\n    .related-post .post-list .item .post_thumb {\r\n      max-height: 220px;\r\n      margin: 10px 0px;\r\n      padding: 0px;\r\n      display: block;\r\n          }\r\n\r\n    .related-post .post-list .item .post_title {\r\n      font-size: 14px;\r\n      color: #000000;\r\n      margin: 10px 0px;\r\n      padding: 0px;\r\n      display: block;\r\n      text-decoration: none;\r\n          }\r\n\r\n    .related-post .post-list .item .post_excerpt {\r\n      font-size: 12px;\r\n      color: #3f3f3f;\r\n      margin: 10px 0px;\r\n      padding: 0px;\r\n      display: block;\r\n      text-decoration: none;\r\n          }\r\n\r\n    .related-post .owl-dots .owl-dot {\r\n          }\r\n\r\n      <\/style>\r\n      <script>\r\n      jQuery(document).ready(function($) {\r\n        $(\".related-post .post-list\").owlCarousel({\r\n          items: 2,\r\n          responsiveClass: true,\r\n          responsive: {\r\n            0: {\r\n              items: 1,\r\n            },\r\n            768: {\r\n              items: 2,\r\n            },\r\n            1200: {\r\n              items: 2,\r\n            }\r\n          },\r\n                      rewind: true,\r\n                                loop: true,\r\n                                center: false,\r\n                                autoplay: true,\r\n            autoplayHoverPause: true,\r\n                                nav: true,\r\n            navSpeed: 1000,\r\n            navText: ['<i class=\"fas fa-chevron-left\"><\/i>', '<i class=\"fas fa-chevron-right\"><\/i>'],\r\n                                dots: false,\r\n            dotsSpeed: 1200,\r\n                                                    rtl: false,\r\n          \r\n        });\r\n      });\r\n    <\/script>\r\n  <\/div>","protected":false},"excerpt":{"rendered":"<p>It\u2019s usually the small time-consuming tasks that frustrate us the most. Such as uploading a file to S3; the requirement is pretty simple but the method chosen to upload the file will decide the efficiency of the task. As uploading files is a feature that most applications require, RailsCarma has compiled a brief tutorial on &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/www.railscarma.com\/sv\/blogg\/third-party-api-integration-solutions-in-ruby-on-rails\/\"> <span class=\"screen-reader-text\">L\u00f6sningar f\u00f6r API-integration fr\u00e5n tredje part i Ruby on Rails<\/span> L\u00e4s mer \u00bb<\/a><\/p>","protected":false},"author":1,"featured_media":31706,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[384],"tags":[382],"class_list":["post-27814","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technical-articles","tag-ruby-on-rails"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Upload Files Directly To S3 Using Paperclip And Dropzone.js - RailsCarma - Ruby on Rails Development Company specializing in Offshore Development<\/title>\n<meta name=\"description\" content=\"Upload Files Directly To S3 Using Paperclip And Dropzone.js It\u2019s usually the small time-consuming tasks that frustrate us the most. Such as uploading a file to S3; the requirement is pretty simple but the method\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.railscarma.com\/sv\/blogg\/tekniska-artiklar\/ladda-upp-filer-direkt-s3-med-gem-dropzone-js\/\" \/>\n<meta property=\"og:locale\" content=\"sv_SE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Upload Files Directly To S3 Using Paperclip And Dropzone.js - RailsCarma - Ruby on Rails Development Company specializing in Offshore Development\" \/>\n<meta property=\"og:description\" content=\"Upload Files Directly To S3 Using Paperclip And Dropzone.js It\u2019s usually the small time-consuming tasks that frustrate us the most. Such as uploading a file to S3; the requirement is pretty simple but the method\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.railscarma.com\/sv\/blogg\/tekniska-artiklar\/ladda-upp-filer-direkt-s3-med-gem-dropzone-js\/\" \/>\n<meta property=\"og:site_name\" content=\"RailsCarma - Ruby on Rails Development Company specializing in Offshore Development\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RailsCarma\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-12-22T20:29:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-05T07:04:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2017\/12\/Upload-Files-Directly-To-S3-Using-Paperclip-And-Dropzone.js2_.png\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@railscarma\" \/>\n<meta name=\"twitter:site\" content=\"@railscarma\" \/>\n<meta name=\"twitter:label1\" content=\"Skriven av\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Ber\u00e4knad l\u00e4stid\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minuter\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.railscarma.com\/blog\/technical-articles\/upload-files-directly-s3-using-paperclip-dropzone-js\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.railscarma.com\/blog\/technical-articles\/upload-files-directly-s3-using-paperclip-dropzone-js\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/www.railscarma.com\/#\/schema\/person\/5f2228a2dec7549056e709de6eb85d21\"},\"headline\":\"Upload Files Directly To S3 Using Paperclip And Dropzone.js\",\"datePublished\":\"2017-12-22T20:29:55+00:00\",\"dateModified\":\"2021-06-05T07:04:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.railscarma.com\/blog\/technical-articles\/upload-files-directly-s3-using-paperclip-dropzone-js\/\"},\"wordCount\":673,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.railscarma.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.railscarma.com\/blog\/technical-articles\/upload-files-directly-s3-using-paperclip-dropzone-js\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2017\/12\/Upload-Files-Directly-To-S3-Using-Paperclip-And-Dropzone.js2_.png\",\"keywords\":[\"Ruby on rails\"],\"articleSection\":[\"Technical Articles\"],\"inLanguage\":\"sv-SE\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.railscarma.com\/blog\/technical-articles\/upload-files-directly-s3-using-paperclip-dropzone-js\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.railscarma.com\/blog\/technical-articles\/upload-files-directly-s3-using-paperclip-dropzone-js\/\",\"url\":\"https:\/\/www.railscarma.com\/blog\/technical-articles\/upload-files-directly-s3-using-paperclip-dropzone-js\/\",\"name\":\"Upload Files Directly To S3 Using Paperclip And Dropzone.js - RailsCarma - Ruby on Rails Development Company specializing in Offshore Development\",\"isPartOf\":{\"@id\":\"https:\/\/www.railscarma.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.railscarma.com\/blog\/technical-articles\/upload-files-directly-s3-using-paperclip-dropzone-js\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.railscarma.com\/blog\/technical-articles\/upload-files-directly-s3-using-paperclip-dropzone-js\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2017\/12\/Upload-Files-Directly-To-S3-Using-Paperclip-And-Dropzone.js2_.png\",\"datePublished\":\"2017-12-22T20:29:55+00:00\",\"dateModified\":\"2021-06-05T07:04:12+00:00\",\"description\":\"Upload Files Directly To S3 Using Paperclip And Dropzone.js It\u2019s usually the small time-consuming tasks that frustrate us the most. Such as uploading a file to S3; the requirement is pretty simple but the method\",\"breadcrumb\":{\"@id\":\"https:\/\/www.railscarma.com\/blog\/technical-articles\/upload-files-directly-s3-using-paperclip-dropzone-js\/#breadcrumb\"},\"inLanguage\":\"sv-SE\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.railscarma.com\/blog\/technical-articles\/upload-files-directly-s3-using-paperclip-dropzone-js\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"sv-SE\",\"@id\":\"https:\/\/www.railscarma.com\/blog\/technical-articles\/upload-files-directly-s3-using-paperclip-dropzone-js\/#primaryimage\",\"url\":\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2017\/12\/Upload-Files-Directly-To-S3-Using-Paperclip-And-Dropzone.js2_.png\",\"contentUrl\":\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2017\/12\/Upload-Files-Directly-To-S3-Using-Paperclip-And-Dropzone.js2_.png\",\"width\":800,\"height\":300},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.railscarma.com\/blog\/technical-articles\/upload-files-directly-s3-using-paperclip-dropzone-js\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.railscarma.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Upload Files Directly To S3 Using Paperclip And Dropzone.js\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.railscarma.com\/#website\",\"url\":\"https:\/\/www.railscarma.com\/\",\"name\":\"RailsCarma - Ruby on Rails Development Company specializing in Offshore Development\",\"description\":\"RailsCarma is a Ruby on Rails Development Company in Bangalore. We specialize in Offshore Ruby on Rails Development based out in USA and India. Hire experienced Ruby on Rails developers for the ultimate Web Experience.\",\"publisher\":{\"@id\":\"https:\/\/www.railscarma.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.railscarma.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"sv-SE\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.railscarma.com\/#organization\",\"name\":\"RailsCarma\",\"url\":\"https:\/\/www.railscarma.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"sv-SE\",\"@id\":\"https:\/\/www.railscarma.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2020\/08\/railscarma_logo.png\",\"contentUrl\":\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2020\/08\/railscarma_logo.png\",\"width\":200,\"height\":46,\"caption\":\"RailsCarma\"},\"image\":{\"@id\":\"https:\/\/www.railscarma.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/RailsCarma\/\",\"https:\/\/x.com\/railscarma\",\"https:\/\/www.linkedin.com\/company\/railscarma\/\",\"https:\/\/myspace.com\/railscarma\",\"https:\/\/in.pinterest.com\/railscarma\/\",\"https:\/\/www.youtube.com\/channel\/UCx3Wil-aAnDARuatTEyMdpg\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.railscarma.com\/#\/schema\/person\/5f2228a2dec7549056e709de6eb85d21\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"sv-SE\",\"@id\":\"https:\/\/www.railscarma.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/308867ca6c81f3aba146080c601000087180326f752c4116849ea9f514c6a4fa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/308867ca6c81f3aba146080c601000087180326f752c4116849ea9f514c6a4fa?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/www.railscarma.com\/hire-ruby-on-rails-developer\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Ladda upp filer direkt till S3 med gem och Dropzone.js - RailsCarma - Ruby on Rails Development Company specialiserat p\u00e5 offshoreutveckling","description":"Ladda upp filer direkt till S3 med gem och Dropzone.js Det \u00e4r vanligtvis de sm\u00e5 tidskr\u00e4vande uppgifterna som frustrerar oss mest. Som att ladda upp en fil till S3; kravet \u00e4r ganska enkelt men metoden","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:\/\/www.railscarma.com\/sv\/blogg\/tekniska-artiklar\/ladda-upp-filer-direkt-s3-med-gem-dropzone-js\/","og_locale":"sv_SE","og_type":"article","og_title":"Upload Files Directly To S3 Using Paperclip And Dropzone.js - RailsCarma - Ruby on Rails Development Company specializing in Offshore Development","og_description":"Upload Files Directly To S3 Using Paperclip And Dropzone.js It\u2019s usually the small time-consuming tasks that frustrate us the most. Such as uploading a file to S3; the requirement is pretty simple but the method","og_url":"https:\/\/www.railscarma.com\/sv\/blogg\/tekniska-artiklar\/ladda-upp-filer-direkt-s3-med-gem-dropzone-js\/","og_site_name":"RailsCarma - Ruby on Rails Development Company specializing in Offshore Development","article_publisher":"https:\/\/www.facebook.com\/RailsCarma\/","article_published_time":"2017-12-22T20:29:55+00:00","article_modified_time":"2021-06-05T07:04:12+00:00","og_image":[{"width":800,"height":300,"url":"https:\/\/www.railscarma.com\/wp-content\/uploads\/2017\/12\/Upload-Files-Directly-To-S3-Using-Paperclip-And-Dropzone.js2_.png","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@railscarma","twitter_site":"@railscarma","twitter_misc":{"Skriven av":"admin","Ber\u00e4knad l\u00e4stid":"4 minuter"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.railscarma.com\/blog\/technical-articles\/upload-files-directly-s3-using-paperclip-dropzone-js\/#article","isPartOf":{"@id":"https:\/\/www.railscarma.com\/blog\/technical-articles\/upload-files-directly-s3-using-paperclip-dropzone-js\/"},"author":{"name":"admin","@id":"https:\/\/www.railscarma.com\/#\/schema\/person\/5f2228a2dec7549056e709de6eb85d21"},"headline":"Upload Files Directly To S3 Using Paperclip And Dropzone.js","datePublished":"2017-12-22T20:29:55+00:00","dateModified":"2021-06-05T07:04:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.railscarma.com\/blog\/technical-articles\/upload-files-directly-s3-using-paperclip-dropzone-js\/"},"wordCount":673,"commentCount":0,"publisher":{"@id":"https:\/\/www.railscarma.com\/#organization"},"image":{"@id":"https:\/\/www.railscarma.com\/blog\/technical-articles\/upload-files-directly-s3-using-paperclip-dropzone-js\/#primaryimage"},"thumbnailUrl":"https:\/\/www.railscarma.com\/wp-content\/uploads\/2017\/12\/Upload-Files-Directly-To-S3-Using-Paperclip-And-Dropzone.js2_.png","keywords":["Ruby on rails"],"articleSection":["Technical Articles"],"inLanguage":"sv-SE","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.railscarma.com\/blog\/technical-articles\/upload-files-directly-s3-using-paperclip-dropzone-js\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.railscarma.com\/blog\/technical-articles\/upload-files-directly-s3-using-paperclip-dropzone-js\/","url":"https:\/\/www.railscarma.com\/blog\/technical-articles\/upload-files-directly-s3-using-paperclip-dropzone-js\/","name":"Ladda upp filer direkt till S3 med gem och Dropzone.js - RailsCarma - Ruby on Rails Development Company specialiserat p\u00e5 offshoreutveckling","isPartOf":{"@id":"https:\/\/www.railscarma.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.railscarma.com\/blog\/technical-articles\/upload-files-directly-s3-using-paperclip-dropzone-js\/#primaryimage"},"image":{"@id":"https:\/\/www.railscarma.com\/blog\/technical-articles\/upload-files-directly-s3-using-paperclip-dropzone-js\/#primaryimage"},"thumbnailUrl":"https:\/\/www.railscarma.com\/wp-content\/uploads\/2017\/12\/Upload-Files-Directly-To-S3-Using-Paperclip-And-Dropzone.js2_.png","datePublished":"2017-12-22T20:29:55+00:00","dateModified":"2021-06-05T07:04:12+00:00","description":"Ladda upp filer direkt till S3 med gem och Dropzone.js Det \u00e4r vanligtvis de sm\u00e5 tidskr\u00e4vande uppgifterna som frustrerar oss mest. Som att ladda upp en fil till S3; kravet \u00e4r ganska enkelt men metoden","breadcrumb":{"@id":"https:\/\/www.railscarma.com\/blog\/technical-articles\/upload-files-directly-s3-using-paperclip-dropzone-js\/#breadcrumb"},"inLanguage":"sv-SE","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.railscarma.com\/blog\/technical-articles\/upload-files-directly-s3-using-paperclip-dropzone-js\/"]}]},{"@type":"ImageObject","inLanguage":"sv-SE","@id":"https:\/\/www.railscarma.com\/blog\/technical-articles\/upload-files-directly-s3-using-paperclip-dropzone-js\/#primaryimage","url":"https:\/\/www.railscarma.com\/wp-content\/uploads\/2017\/12\/Upload-Files-Directly-To-S3-Using-Paperclip-And-Dropzone.js2_.png","contentUrl":"https:\/\/www.railscarma.com\/wp-content\/uploads\/2017\/12\/Upload-Files-Directly-To-S3-Using-Paperclip-And-Dropzone.js2_.png","width":800,"height":300},{"@type":"BreadcrumbList","@id":"https:\/\/www.railscarma.com\/blog\/technical-articles\/upload-files-directly-s3-using-paperclip-dropzone-js\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.railscarma.com\/"},{"@type":"ListItem","position":2,"name":"Upload Files Directly To S3 Using Paperclip And Dropzone.js"}]},{"@type":"WebSite","@id":"https:\/\/www.railscarma.com\/#website","url":"https:\/\/www.railscarma.com\/","name":"RailsCarma - Ruby on Rails Development Company specialiserat p\u00e5 Offshore Development","description":"RailsCarma \u00e4r ett Ruby on Rails Development Company i Bangalore. Vi \u00e4r specialiserade p\u00e5 Offshore Ruby on Rails Development baserat i USA och Indien. Anst\u00e4ll erfarna Ruby on Rails-utvecklare f\u00f6r den ultimata webbupplevelsen.","publisher":{"@id":"https:\/\/www.railscarma.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.railscarma.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"sv-SE"},{"@type":"Organization","@id":"https:\/\/www.railscarma.com\/#organization","name":"RailsCarma","url":"https:\/\/www.railscarma.com\/","logo":{"@type":"ImageObject","inLanguage":"sv-SE","@id":"https:\/\/www.railscarma.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.railscarma.com\/wp-content\/uploads\/2020\/08\/railscarma_logo.png","contentUrl":"https:\/\/www.railscarma.com\/wp-content\/uploads\/2020\/08\/railscarma_logo.png","width":200,"height":46,"caption":"RailsCarma"},"image":{"@id":"https:\/\/www.railscarma.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RailsCarma\/","https:\/\/x.com\/railscarma","https:\/\/www.linkedin.com\/company\/railscarma\/","https:\/\/myspace.com\/railscarma","https:\/\/in.pinterest.com\/railscarma\/","https:\/\/www.youtube.com\/channel\/UCx3Wil-aAnDARuatTEyMdpg"]},{"@type":"Person","@id":"https:\/\/www.railscarma.com\/#\/schema\/person\/5f2228a2dec7549056e709de6eb85d21","name":"administration","image":{"@type":"ImageObject","inLanguage":"sv-SE","@id":"https:\/\/www.railscarma.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/308867ca6c81f3aba146080c601000087180326f752c4116849ea9f514c6a4fa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/308867ca6c81f3aba146080c601000087180326f752c4116849ea9f514c6a4fa?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/www.railscarma.com\/hire-ruby-on-rails-developer\/"]}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.railscarma.com\/sv\/wp-json\/wp\/v2\/posts\/27814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.railscarma.com\/sv\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.railscarma.com\/sv\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.railscarma.com\/sv\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.railscarma.com\/sv\/wp-json\/wp\/v2\/comments?post=27814"}],"version-history":[{"count":0,"href":"https:\/\/www.railscarma.com\/sv\/wp-json\/wp\/v2\/posts\/27814\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.railscarma.com\/sv\/wp-json\/wp\/v2\/media\/31706"}],"wp:attachment":[{"href":"https:\/\/www.railscarma.com\/sv\/wp-json\/wp\/v2\/media?parent=27814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.railscarma.com\/sv\/wp-json\/wp\/v2\/categories?post=27814"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.railscarma.com\/sv\/wp-json\/wp\/v2\/tags?post=27814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}