I simply which to map these to a media folder but receive the below error:
Error while importing data for property 'images', datasource record displayAddress = 'New Road, Chatteris', Error :Illegal characters in path
Creating content using ContentService. WebRequest to load the image bytes and MediaService to save. If you want to share my code with you. So just adapt it for your import.
My suggestion is an alternative if the CMSImport does not work. It works great. If you need it urgently there is this alternative. I'm doing a similar migration and I've created a code in the console app for this. The CMSImport license is very expensive for me, due to the devaluation of my currency.
Please could I get a response on this Ive tried creating the file structure on disk with no luck and recently tried the RTE document type this correctly gets the url from the xml but doesnt import the file.
Are you able to provide some example XML with images that I could look at please?
XML Import Images
Urgent help please I have purchased a pro license which is working fine with the exception of handling media:
Example : XML Here
Each property node has images:
I simply which to map these to a media folder but receive the below error: Error while importing data for property 'images', datasource record displayAddress = 'New Road, Chatteris', Error :Illegal characters in path
I know how to do this using an Console Application, like this:
Https://github.com/sitereactor/umbraco-console-example
Creating content using ContentService. WebRequest to load the image bytes and MediaService to save. If you want to share my code with you. So just adapt it for your import.
Thanks for coming back to me, sorry I cant make sense of your suggestion I thought the import was capable of doing this as is?
My suggestion is an alternative if the CMSImport does not work. It works great. If you need it urgently there is this alternative. I'm doing a similar migration and I've created a code in the console app for this. The CMSImport license is very expensive for me, due to the devaluation of my currency.
Hi Andrew,
You need to do 2 things:
Hope this helps you,
Richard
Hi Richard,
Thank you so much for coming back to me but afraid having implemented the above Im still getting the same error.
See Media settings below:
This is the destination folder I am trying to import to:
Specified domain urls, so url's containing these domain urls will be converted to relative paths,
example
Example Image link
converted to
/v3/clients/1372/properties/9/IMG915_large.jpg
I hope its something really obvious that im missing and appreciate your help.
Are the files also on disk as in /v3/clients/1372/properties/9/IMG915_large.jpg etc?
Please could I get a response on this Ive tried creating the file structure on disk with no luck and recently tried the RTE document type this correctly gets the url from the xml but doesnt import the file.
Are you able to provide some example XML with images that I could look at please?
Sorry not sure what you mean by that the files are not on a disk just urls in an xml feed as per the link I provided in my initial post :
http://services.jupix.co.uk/api/get_properties.php?clientID=ce5385e4d6f49ce36a5e1c0b3fa981d4&passphrase=GHvYG9f
See example structure below:
I have also tried modifying the xml removing the modified attribute and also adding a file on disk but still no luck:
I have implemented what I hope is a temporary solution:
I can get to the image Url e.g.
http://media2.jupix.co.uk/v3/clients/1372/properties/24/IMG2411_large.jpg
Into a text editor as a string and then reference this from an image object :
However the import still wont create media:
https://our.umbraco.org/documentation/reference/management/services/mediaservice
HI Andrew,
Would it be possible to share the site then I can run in debug mode and tell you what is wrong.
I'll delete the environment afterwards.
Best,
Richard
Hi Richard,
I have taken a copy from GitHub and emailed you at: [email protected]
Many Thanks
Andrew
Is this the correct way to import this picture
http://www.website.com/images/image.jpg
add http://www.website.com/ into "parse media for the following domain urls"
And the xml like this
/images/image.jpg
Yes and add the /images folder to your Umbraco site.
is working on a reply...