2.3 how can i upload SVGHow can I upload SVG files as Magento product images?Can I upload SVG images to the...

In Linux what happens if 1000 files in a directory are moved to another location while another 300 files were added to the source directory?

How can I deliver in-universe written lore to players without it being dry exposition?

Digits in an algebraic irrational number

Why would the Pakistan airspace closure cancel flights not headed to Pakistan itself?

Who is this Ant Woman character in this image alongside the Wasp?

Can you tell from a blurry photo if focus was too close or too far?

How do you funnel food off a cutting board?

Why do neural networks need so many training examples to perform?

How do Chazal know that the descendants of a Mamzer may never marry into the general populace?

What's a good word to describe a public place that looks like it wouldn't be rough?

How to say "Brexit" in Latin?

Incorporating research and background: How much is too much?

My cat mixes up the floors in my building. How can I help him?

Why do members of Congress in committee hearings ask witnesses the same question multiple times?

Do authors have to be politically correct in article-writing?

Would a National Army of mercenaries be a feasible idea?

Dilemma of explaining to interviewer that he is the reason for declining second interview

Why publish a research paper when a blog post or a lecture slide can have more citation count than a journal paper?

What is the lore-based reason that the Spectator has the Create Food and Water trait, instead of simply not requiring food and water?

How to prevent users from executing commands through browser URL

Why isn't there a non-conducting core wire for high-frequency coil applications

CREATE ASSEMBLY System.DirectoryServices.AccountManagement.dll without enabling TRUSTWORTHY

Eww, those bytes are gross

Why did other German political parties disband so fast when Hitler was appointed chancellor?



2.3 how can i upload SVG


How can I upload SVG files as Magento product images?Can I upload SVG images to the products on Magento 2.2.3?Magento 2.3 : How to implement declarative schema in custom moduleMagento 2.3 make price block dynamicWhat is use of reactJS in magento 2.3Magento 2.3: Add Attachment with email (Magento 2.3 use zendframework 2)Magento 2.3 File validation failed when uploading SVG image in CMSExternal Request - Invalid Form Key Magento 2.3Errors on Declarative Schema on custom module on 2.3Magento 2.3 : How to change the logo?













1















I used others post but not working, My currently problem is that I cannot seem.



how can i upload and use SVG file in magento 2.3? please help.










share|improve this question



























    1















    I used others post but not working, My currently problem is that I cannot seem.



    how can i upload and use SVG file in magento 2.3? please help.










    share|improve this question

























      1












      1








      1








      I used others post but not working, My currently problem is that I cannot seem.



      how can i upload and use SVG file in magento 2.3? please help.










      share|improve this question














      I used others post but not working, My currently problem is that I cannot seem.



      how can i upload and use SVG file in magento 2.3? please help.







      magento2.3 svg






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 54 mins ago









      niceoneleeniceonelee

      181212




      181212






















          1 Answer
          1






          active

          oldest

          votes


















          1














          I believe that you want to use SVG images in cms pages.



          For the quick solution got to




          [your magento dir]vendormagentomodule-cmsetcdi.xml




          There you can see <type name="MagentoCmsModelWysiwygImagesStorage">
          add svg to the list like this



          <argument name="extensions" xsi:type="array">
          <item name="allowed" xsi:type="array">
          <item name="jpg" xsi:type="string">image/jpg</item>
          <item name="jpeg" xsi:type="string">image/jpeg</item>
          <item name="png" xsi:type="string">image/png</item>
          <item name="gif" xsi:type="string">image/gif</item>
          <item name="svg" xsi:type="string">image/svg</item>
          </item>
          <item name="image_allowed" xsi:type="array">
          <item name="jpg" xsi:type="string">image/jpg</item>
          <item name="jpeg" xsi:type="string">image/jpeg</item>
          <item name="png" xsi:type="string">image/png</item>
          <item name="gif" xsi:type="string">image/gif</item>
          <item name="svg" xsi:type="string">image/svg</item>
          </item>
          <item name="media_allowed" xsi:type="array">
          <item name="flv" xsi:type="string">video/x-flv</item>
          <item name="swf" xsi:type="string">application/x-shockwave-flash</item>
          <item name="avi" xsi:type="string">video/x-msvideo</item>
          <item name="mov" xsi:type="string">video/x-sgi-movie</item>
          <item name="rm" xsi:type="string">application/vnd.rn-realmedia</item>
          <item name="wmv" xsi:type="string">video/x-ms-wmv</item>
          </item>




          Hope this helps.



          Please note that editing core files are not recommended. Please write it in your custom module.



          Don't forget to clear cache






          share|improve this answer
























          • not working on 2.3 Attention, We don't recognize or support this file extension type.

            – niceonelee
            30 mins ago











          • Did you cleared cache ?

            – Jordy S Chemparathy
            25 mins ago











          • I will check it in my local machine and update you

            – Jordy S Chemparathy
            24 mins ago











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "479"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f263967%2f2-3-how-can-i-upload-svg%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          I believe that you want to use SVG images in cms pages.



          For the quick solution got to




          [your magento dir]vendormagentomodule-cmsetcdi.xml




          There you can see <type name="MagentoCmsModelWysiwygImagesStorage">
          add svg to the list like this



          <argument name="extensions" xsi:type="array">
          <item name="allowed" xsi:type="array">
          <item name="jpg" xsi:type="string">image/jpg</item>
          <item name="jpeg" xsi:type="string">image/jpeg</item>
          <item name="png" xsi:type="string">image/png</item>
          <item name="gif" xsi:type="string">image/gif</item>
          <item name="svg" xsi:type="string">image/svg</item>
          </item>
          <item name="image_allowed" xsi:type="array">
          <item name="jpg" xsi:type="string">image/jpg</item>
          <item name="jpeg" xsi:type="string">image/jpeg</item>
          <item name="png" xsi:type="string">image/png</item>
          <item name="gif" xsi:type="string">image/gif</item>
          <item name="svg" xsi:type="string">image/svg</item>
          </item>
          <item name="media_allowed" xsi:type="array">
          <item name="flv" xsi:type="string">video/x-flv</item>
          <item name="swf" xsi:type="string">application/x-shockwave-flash</item>
          <item name="avi" xsi:type="string">video/x-msvideo</item>
          <item name="mov" xsi:type="string">video/x-sgi-movie</item>
          <item name="rm" xsi:type="string">application/vnd.rn-realmedia</item>
          <item name="wmv" xsi:type="string">video/x-ms-wmv</item>
          </item>




          Hope this helps.



          Please note that editing core files are not recommended. Please write it in your custom module.



          Don't forget to clear cache






          share|improve this answer
























          • not working on 2.3 Attention, We don't recognize or support this file extension type.

            – niceonelee
            30 mins ago











          • Did you cleared cache ?

            – Jordy S Chemparathy
            25 mins ago











          • I will check it in my local machine and update you

            – Jordy S Chemparathy
            24 mins ago
















          1














          I believe that you want to use SVG images in cms pages.



          For the quick solution got to




          [your magento dir]vendormagentomodule-cmsetcdi.xml




          There you can see <type name="MagentoCmsModelWysiwygImagesStorage">
          add svg to the list like this



          <argument name="extensions" xsi:type="array">
          <item name="allowed" xsi:type="array">
          <item name="jpg" xsi:type="string">image/jpg</item>
          <item name="jpeg" xsi:type="string">image/jpeg</item>
          <item name="png" xsi:type="string">image/png</item>
          <item name="gif" xsi:type="string">image/gif</item>
          <item name="svg" xsi:type="string">image/svg</item>
          </item>
          <item name="image_allowed" xsi:type="array">
          <item name="jpg" xsi:type="string">image/jpg</item>
          <item name="jpeg" xsi:type="string">image/jpeg</item>
          <item name="png" xsi:type="string">image/png</item>
          <item name="gif" xsi:type="string">image/gif</item>
          <item name="svg" xsi:type="string">image/svg</item>
          </item>
          <item name="media_allowed" xsi:type="array">
          <item name="flv" xsi:type="string">video/x-flv</item>
          <item name="swf" xsi:type="string">application/x-shockwave-flash</item>
          <item name="avi" xsi:type="string">video/x-msvideo</item>
          <item name="mov" xsi:type="string">video/x-sgi-movie</item>
          <item name="rm" xsi:type="string">application/vnd.rn-realmedia</item>
          <item name="wmv" xsi:type="string">video/x-ms-wmv</item>
          </item>




          Hope this helps.



          Please note that editing core files are not recommended. Please write it in your custom module.



          Don't forget to clear cache






          share|improve this answer
























          • not working on 2.3 Attention, We don't recognize or support this file extension type.

            – niceonelee
            30 mins ago











          • Did you cleared cache ?

            – Jordy S Chemparathy
            25 mins ago











          • I will check it in my local machine and update you

            – Jordy S Chemparathy
            24 mins ago














          1












          1








          1







          I believe that you want to use SVG images in cms pages.



          For the quick solution got to




          [your magento dir]vendormagentomodule-cmsetcdi.xml




          There you can see <type name="MagentoCmsModelWysiwygImagesStorage">
          add svg to the list like this



          <argument name="extensions" xsi:type="array">
          <item name="allowed" xsi:type="array">
          <item name="jpg" xsi:type="string">image/jpg</item>
          <item name="jpeg" xsi:type="string">image/jpeg</item>
          <item name="png" xsi:type="string">image/png</item>
          <item name="gif" xsi:type="string">image/gif</item>
          <item name="svg" xsi:type="string">image/svg</item>
          </item>
          <item name="image_allowed" xsi:type="array">
          <item name="jpg" xsi:type="string">image/jpg</item>
          <item name="jpeg" xsi:type="string">image/jpeg</item>
          <item name="png" xsi:type="string">image/png</item>
          <item name="gif" xsi:type="string">image/gif</item>
          <item name="svg" xsi:type="string">image/svg</item>
          </item>
          <item name="media_allowed" xsi:type="array">
          <item name="flv" xsi:type="string">video/x-flv</item>
          <item name="swf" xsi:type="string">application/x-shockwave-flash</item>
          <item name="avi" xsi:type="string">video/x-msvideo</item>
          <item name="mov" xsi:type="string">video/x-sgi-movie</item>
          <item name="rm" xsi:type="string">application/vnd.rn-realmedia</item>
          <item name="wmv" xsi:type="string">video/x-ms-wmv</item>
          </item>




          Hope this helps.



          Please note that editing core files are not recommended. Please write it in your custom module.



          Don't forget to clear cache






          share|improve this answer













          I believe that you want to use SVG images in cms pages.



          For the quick solution got to




          [your magento dir]vendormagentomodule-cmsetcdi.xml




          There you can see <type name="MagentoCmsModelWysiwygImagesStorage">
          add svg to the list like this



          <argument name="extensions" xsi:type="array">
          <item name="allowed" xsi:type="array">
          <item name="jpg" xsi:type="string">image/jpg</item>
          <item name="jpeg" xsi:type="string">image/jpeg</item>
          <item name="png" xsi:type="string">image/png</item>
          <item name="gif" xsi:type="string">image/gif</item>
          <item name="svg" xsi:type="string">image/svg</item>
          </item>
          <item name="image_allowed" xsi:type="array">
          <item name="jpg" xsi:type="string">image/jpg</item>
          <item name="jpeg" xsi:type="string">image/jpeg</item>
          <item name="png" xsi:type="string">image/png</item>
          <item name="gif" xsi:type="string">image/gif</item>
          <item name="svg" xsi:type="string">image/svg</item>
          </item>
          <item name="media_allowed" xsi:type="array">
          <item name="flv" xsi:type="string">video/x-flv</item>
          <item name="swf" xsi:type="string">application/x-shockwave-flash</item>
          <item name="avi" xsi:type="string">video/x-msvideo</item>
          <item name="mov" xsi:type="string">video/x-sgi-movie</item>
          <item name="rm" xsi:type="string">application/vnd.rn-realmedia</item>
          <item name="wmv" xsi:type="string">video/x-ms-wmv</item>
          </item>




          Hope this helps.



          Please note that editing core files are not recommended. Please write it in your custom module.



          Don't forget to clear cache







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 41 mins ago









          Jordy S ChemparathyJordy S Chemparathy

          1267




          1267













          • not working on 2.3 Attention, We don't recognize or support this file extension type.

            – niceonelee
            30 mins ago











          • Did you cleared cache ?

            – Jordy S Chemparathy
            25 mins ago











          • I will check it in my local machine and update you

            – Jordy S Chemparathy
            24 mins ago



















          • not working on 2.3 Attention, We don't recognize or support this file extension type.

            – niceonelee
            30 mins ago











          • Did you cleared cache ?

            – Jordy S Chemparathy
            25 mins ago











          • I will check it in my local machine and update you

            – Jordy S Chemparathy
            24 mins ago

















          not working on 2.3 Attention, We don't recognize or support this file extension type.

          – niceonelee
          30 mins ago





          not working on 2.3 Attention, We don't recognize or support this file extension type.

          – niceonelee
          30 mins ago













          Did you cleared cache ?

          – Jordy S Chemparathy
          25 mins ago





          Did you cleared cache ?

          – Jordy S Chemparathy
          25 mins ago













          I will check it in my local machine and update you

          – Jordy S Chemparathy
          24 mins ago





          I will check it in my local machine and update you

          – Jordy S Chemparathy
          24 mins ago


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f263967%2f2-3-how-can-i-upload-svg%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          “%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

          How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

          夢乃愛華...