Uploading Multiple Files As Email Attachment |
[eluser]RaGe10940[/eluser]
Using this library : https://github.com/nicdev/CodeIgniter-Mu...ile-Upload I am able to upload multiple files to my directory that works fine and dandy and even the email works However now only one email is sending an attachment (again) however I noticed a problem when trying to send and array... I am getting this : Code: array(14) { ["file_name"]=> string(9) "test2.txt" ["file_type"]=> string(10) "text/plain" ["file_path"]=> string(35) "/usr/local/var/www/Test/ci/uploads/" ["full_path"]=> string(44) "/usr/local/var/www/Test/ci/uploads/test2.txt" ["raw_name"]=> string(5) "test2" ["orig_name"]=> string(9) "test2.txt" ["client_name"]=> string(9) "test2.txt" ["file_ext"]=> string(4) ".txt" ["file_size"]=> float(0.01) ["is_image"]=> bool(false) ["image_width"]=> string(0) "" ["image_height"]=> string(0) "" ["image_type"]=> string(0) "" ["image_size_str"]=> string(0) "" } which is the $this->upload->data() now I run this through : Code: foreach ($this->upload->data() as $fileData) { However the problem is now that the array is not adding the second, third, fourth, fifth file... it only adds one file. in my view : div id="attachment"> <input type="file" name="userfile[]" multiple /> </div> and still nothing.. I tried using this library as well : https://github.com/stvnthomas/CodeIgniter-Multi-Upload and still the same problem. Any tips? |
Welcome Guest, Not a member yet? Register Sign In |