mrkhan Posted May 23, 2018 Share Posted May 23, 2018 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 Link to comment Share on other sites More sharing options...
Ivan Gretsky Posted May 23, 2018 Share Posted May 23, 2018 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. 4 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now