Welcome Guest, Not a member yet? Register   Sign In
Images not loading, adding to the end
#7

[eluser]JacobRyan[/eluser]
[quote author="Cristian Gilè" date="1294278844"]Have you tried to explode the content of the additional_images field ?

The % 0D at the end of the images file name is a carriage return (\r). The explode function returns an array of strings (images file name), each of which is a substring of the addiotional_images content field formed by splitting it on boundaries formed by the \r delimiter.

Your addiotinal_images field content is like this:

image1.jpg% 0D
image2.jpg% 0D
image3.jpg% 0D
image4.jpg

after explode it, the result array contains:

image1.jpg
image2.jpg
image3.jpg
image4.jpg

without the carriage return.

Please, paste here a reduction of your controller and your model.

If possible, save images in asset folder without spaces in the file name.[/quote]

I'm not quite sure what you're asking for. I do see in my SQL dump that it's adding a carriage return after the new items I added in by hand.


Messages In This Thread
Images not loading, adding to the end - by El Forum - 01-05-2011, 12:05 PM
Images not loading, adding to the end - by El Forum - 01-05-2011, 12:26 PM
Images not loading, adding to the end - by El Forum - 01-05-2011, 12:29 PM
Images not loading, adding to the end - by El Forum - 01-05-2011, 12:41 PM
Images not loading, adding to the end - by El Forum - 01-05-2011, 01:17 PM
Images not loading, adding to the end - by El Forum - 01-05-2011, 01:54 PM
Images not loading, adding to the end - by El Forum - 01-05-2011, 02:27 PM
Images not loading, adding to the end - by El Forum - 01-05-2011, 03:29 PM
Images not loading, adding to the end - by El Forum - 01-05-2011, 03:32 PM
Images not loading, adding to the end - by El Forum - 01-06-2011, 03:30 AM
Images not loading, adding to the end - by El Forum - 01-06-2011, 04:52 AM
Images not loading, adding to the end - by El Forum - 01-06-2011, 06:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB