At first as I see you are calling method do_upload twice, I think you need to delete one of them. After do_upload call try to call $this->upload->display_errors() method it can give you some errors. Recheck the field name it should be "certificate" and check the chmod of '.
/assets/certificates/' it should be 777. Hope this helps.
Oops, that was an error on my part when I was pasting in the code here, but your suggestions helped all the same, I added in the call to $this->upload->display_errors() and I got back some meaningful info, turns out the file was being rejected because it didn't think it was of the correct filetype, I searched a little more on this and found that this is a bug in codeigniter, I had to edit the mimes. Php file under config to array('application/pdf', 'application/x-pdf','application/octet-stream') Thanks for all your help! – Felipe Kettle Aug 20 '10 at 0:03.
You're just asking for more information from the OP... – Matthew Aug 19 '10 at 15:40 Yeah, sorry, still new to SO and trying to get used to things. Thanks. – George Aug 20 '10 at 10:13.
Yes, this seems long but client wants VERY SIMPLE way of differentiating individual files in a single directory (i don't know how to create new unique directories when client's clients upload new files). As I said, I had the file_upload. Php function working prior to trying to rename the files.
Once I added code that I THOUGHT would rename the file by pulling from FORM input fields, I broke the PHP and am now lost as to how to get it to work as needed. A simple form is as follows, and the php I have for form_input.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.