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

[eluser]Cristian Gilè[/eluser]
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.


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