I just tested it and Pixlr is a bit stricter, in regards to filenames, than Umbraco which allows almost everything. It doesn't allow an apostrophe in the filename.
I am not sure what could be done. UrlEncoding an apostrophe doesn't change anything as far as I know and they obviously can't be removed from Pixlr Url.
I got it working in the end by tweaking the source code to do some replacing of apostrophes with %27 (which is a URL encoded apostrophe) in the filename, and some stripping of apostrophes completely in the titles.
Apostrophes in image filename causing problems
If an image is uploaded with an apostrophe in the filename, Pixlr throws a Javascript error on this line in /umbraco/editMedia.aspx:
pixlrLink.getAttributeNode('onclick').value = originalUrl.replace('filename-with-'apostrophe'-here', textbox.val().replace('|', ''));
Is this a known issue? I'm using 1.3 of the Pixlr package in 4.7.1.
Thanks,
Mike
Hi Mike,
I just tested it and Pixlr is a bit stricter, in regards to filenames, than Umbraco which allows almost everything. It doesn't allow an apostrophe in the filename.
I am not sure what could be done. UrlEncoding an apostrophe doesn't change anything as far as I know and they obviously can't be removed from Pixlr Url.
Cheers
Bjørn
Hi Bjørn
I got it working in the end by tweaking the source code to do some replacing of apostrophes with %27 (which is a URL encoded apostrophe) in the filename, and some stripping of apostrophes completely in the titles.
Cheers :-)
Mike
Hi Mike,
Excellent :)
Cheers
Bjørn
is working on a reply...