Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1346768

    I can not upload a .ico file to use as a favicon.

    I get an error message saying it’s not allowed to upload these files?

    What can be wrong? It should be no problem to upload a .ico file, right?

    #1346820

    Hi Alwin,

    WordPress restricts the type of files you can upload, you can find the list here: https://codex.wordpress.org/Uploading_Files
    In order to allow .ico files to be uploaded, edit wp-config.php file located in the root folder of your site (you can view this using FTP or through Cpanel).
    Find this line of text in wp-config.php file:

    /* Add any custom values between this line and the "stop editing" line. */

    below it add this code:

    define( 'ALLOW_UNFILTERED_UPLOADS', true );

    Hope this helps.

    Best regards,
    Nikko

    #1346850

    Hello Niko,

    Thank you for your help.

    The point however is that .ico files are allowed (see the link you provided yourself):
    https://codex.wordpress.org/Uploading_Files

    WordPress supports uploading the following file types:
    .jpg
    .jpeg
    .png
    .gif
    .ico

    In the past I could always upload .ico files without any problems, and it should be no problem now either. But it is, so how to proceed now?

    Thanks,
    Alwin

    #1346877

    Hi Alwin,

    I’m not sure if WordPress forgot to remove it from the list or it is allowed by default however, I did try upload a .ico file on my end and I get this error:

    “icon.ico” has failed to upload.
    Sorry, you are not allowed to upload this file type.

    So my assumption is that it is not allowed, please proceed to editing wp-config.php file as instructed above since it’s working properly and I have also tested it.

    Best regards,
    Nikko

    #1346904

    Hello Nikko,

    I used a .png file for the favicon and that’s working fine now :)

    Thanks,
    Alwin

    #1346920

    Hi,

    Great, I’m glad that you got it working. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #1346922

    Yes, you can close this topic.

    #1346928

    Hi,

    Thanks for letting us know, I’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘upload warning .ico file’ is closed to new replies.