Upload Class. Need numbering to start at 00 |
[eluser]Craig Ward[/eluser]
I am using the uplaod class for images and currently the class works the names as follows: If you upload 5 images with the name of pic, for example, it will do the following. pic.jpg pic1.jpg pic2.jpg pic3.jpg pic4.jpg I really need this numbering done in the following way pic00.jpg pic01.jpg pic02.jpg pic03.jpg pic04.jpg How would I get this to work?
[eluser]Krzemo[/eluser]
Create MY_Upload.php library and alter set_filename function to behave as desired...
[eluser]Craig Ward[/eluser]
Thats the part I would need help with. Are there any guides for doing it?
[eluser]Hernando[/eluser]
In user guide: http://ellislab.com/codeigniter/user-gui...aries.html View the section: Extending Native Libraries Cheers
[eluser]Krzemo[/eluser]
In case you are looking for more precise answer... Code: function set_filename($path, $filename) Regs K
[eluser]Craig Ward[/eluser]
Your a top man Will plug this in straight away Thank you very much Kind Regards Craig |
Welcome Guest, Not a member yet? Register Sign In |