Welcome Guest, Not a member yet? Register   Sign In
Images in CodeIgniter, how to?
#6

[eluser]jedd[/eluser]
[quote author="Sinclair" date="1260030037"]
In my test website in codeigniter I'am storing the images in files with the paths to the images in the database.
[/quote]

Store the images in or out of the web directory structure - doesn't matter. Use the blank index.html trick as previously suggested if the directory is navigable using HTTP.

Save the filename (if you think it's important) in your database, but save the file using a UUID, and then refer to that in your URL's, secure in the knowledge no one can reasonably guess any of your other file names.


Messages In This Thread
Images in CodeIgniter, how to? - by El Forum - 12-05-2009, 04:20 AM
Images in CodeIgniter, how to? - by El Forum - 12-05-2009, 04:27 AM
Images in CodeIgniter, how to? - by El Forum - 12-05-2009, 12:51 PM
Images in CodeIgniter, how to? - by El Forum - 12-05-2009, 04:42 PM
Images in CodeIgniter, how to? - by El Forum - 12-05-2009, 06:50 PM
Images in CodeIgniter, how to? - by El Forum - 12-05-2009, 06:53 PM
Images in CodeIgniter, how to? - by El Forum - 12-05-2009, 07:15 PM
Images in CodeIgniter, how to? - by El Forum - 12-05-2009, 07:27 PM
Images in CodeIgniter, how to? - by El Forum - 12-05-2009, 07:35 PM
Images in CodeIgniter, how to? - by El Forum - 12-05-2009, 07:43 PM
Images in CodeIgniter, how to? - by El Forum - 12-05-2009, 08:08 PM
Images in CodeIgniter, how to? - by El Forum - 12-06-2009, 01:50 AM
Images in CodeIgniter, how to? - by El Forum - 12-06-2009, 06:03 AM
Images in CodeIgniter, how to? - by El Forum - 12-06-2009, 06:28 AM
Images in CodeIgniter, how to? - by El Forum - 12-06-2009, 06:45 AM
Images in CodeIgniter, how to? - by El Forum - 12-06-2009, 07:33 AM
Images in CodeIgniter, how to? - by El Forum - 12-06-2009, 09:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB