Jump to content

XML Import Issue


mrkhan
 Share

Recommended Posts

Hello,

I am trying to Import XML and then create pages from these XML feeds.

Everything is working fine, the only issue is with Image

in XML feed some images are with extension and its downloading and adding in page

but some images are without extension its making issue, how can I import all images with or without extension and add to the page?

If I load image URL without an extension in browser Image is loading fine.

see attachment for XML feed.

Thanks
 

image007.png

Link to comment
Share on other sites

It seems like browsers do not need an extension to recognize the image MIME type. But ProcessWire Image Field limits files that you can add to it by extension list (see field's Details tab). I am not sure if you can configure it to accept no extension (probably not). But you could write some script to add an extension to the image based on its MIME type before adding it to the field. PHP should be capable of doing it easily.

  • Like 4
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...