Please patiently wait till your ticket is proceeded. In case you'd add a new comment before we have a chance to respond, your ticket will go down the list, so, you must edit your previous comment instead. 

Okay
  Public Ticket #2141589
SVG upload
Closed

Comments

  • metk8008 started the conversation

    Dear team,

    How can I enable on AeroLands function.php so I can upload SVG files. I tried to modify the functions.php with this code but without any success:

    function add_file_types_to_uploads($file_types){
    $new_filetypes = array();
    $new_filetypes['svg'] = 'image/svg+xml';
    $file_types = array_merge($file_types, $new_filetypes );
    return $file_types;
    }
    add_action('upload_mimes', 'add_file_types_to_uploads');


    Is there another way?

    Thanks for your help!

    Regards,
    Serkan


  •  1,621
    Bryan replied

    Hi

    About uploading SVG file format to the server, you should contact hosting provider to help you check and enable this format before upload it. 

    Thanks