Automatically Create Directory When Uploading With CodeIgniter

Automatically Create Directory When Uploading with CodeIgniter

CodeIgniter does not automatically create a directory when uploading a file to a non-existent directory. There are some work around by handling it in controller when uploading the file, but the easiest way is to extend CI_Upload library. Harrison Emmanuel (Eharry.me) came up with a library to extend CI_Upload. Be sure to check his github gist. How To Use To use this library, you can create MY_Upload.php under your application/libraries folder and use the following code. libraries/MY_Upload.php [crayon-673ed35f558ab437381873/] And it’s done. You

Continue Reading

Sliding Sidebar