Images without file extension are not downloaded (broken after import)

This topic is: resolved

 

Thank you for contacting me. Please note that I live in the GMT+3 time zone - responses might be delayed by this.

This topic has 3 replies, 2 voices, and was last updated 1 month, 1 week ago by Szabi – CodeRevolution.

Viewing 3 reply threads
  • Author
    Posts
    • #12609


      Rene
      Participant
      Post count: 1

      Hi Support Team,

      I am currently experiencing an issue with image imports.

      Images that do not contain a file extension in the URL (for example: https://example.com/img/image-123) are not downloaded correctly.
      Although the files exist and are valid images (e.g., image/jpeg), the plugin does not save or rewrite them properly, which results in broken images after import.

      Additional details:
      • The image URLs have no .jpg, .png, .webp etc. extension
      • The server returns correct MIME types (e.g., image/jpeg)
      • The images sometimes include size parameters like ?width=1500&height=843
      • The files are downloaded partially (file size exists), but aren’t recognized or rewritten in the content, resulting in broken images in posts
      • Example URL: https://s.zentrum-der-gesundheit.de/img/leinoel
      • Even when forcing download via custom script, the system does not append a valid file extension based on MIME type

      Expected behavior:
      • The importer should determine the file type via MIME detection (e.g., image/jpeg → .jpg)
      • The image should be saved locally with a valid extension
      • The path inside the post should be replaced with the local attachment URL

      Right now, images without file extensions are not usable after import.

      Could you please advise if there is:
      1. A built-in setting to enable MIME-based file extension fallback?
      2. A filter/hook to force saving images with a proper extension?
      3. Or an official workaround for this behavior?

      Thank you in advance for your support.

      Best regards,
      Rene

    • #12611


      Szabi – CodeRevolution
      Keymaster
      Post count: 5080

      Hello,

      First of all, thank you for your purchase.

      Please send me an example URL where I can see these images embedded, so I can try to scrape them using the plugin and find a solution for this issue.

      Thank you.

      Regards,
      Szabi – CodeRevolution.

    • #12612


      Rene
      Participant
      Post count: 1

      Hi,

      try to use this URL

      https://www.zentrum-der-gesundheit.de/ernaehrung/lebensmittel/fette-oele-essig/leinoel

      BR

      Rene

    • #12613


      Szabi – CodeRevolution
      Keymaster
      Post count: 5080

      Please send me temporary admin login credentials to your site where you scrape this URL, as I need to check also on your current plugin settings. My email is kisded@yahoo.com

      Regards.

Viewing 3 reply threads

The topic ‘Images without file extension are not downloaded (broken after import)’ is closed to new replies.