upload file and its name |
[eluser]Krystian[/eluser]
I`m new in CI and the question is.... when I upload a file I want to save its name into database. CI is a smart beast and when I`m trying to upload the same file again and again it changing this name adding number on the end of file name. I`m saving to database Code: $_FILES['fileUpload']['name'] How can I save the same name as CI?? cheers
[eluser]Ben Edmunds[/eluser]
There's an error in the upload class. Do a search on the forums and you'll find the answer to your problem and the patch to apply to the upload class.
[eluser]megabyte[/eluser]
I love CodeIgniter but I'd suggest using class.upload http://www.verot.net/php_class_upload.htm I have had less issues using it. |
Welcome Guest, Not a member yet? Register Sign In |