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

  •  884
    Linh 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