[eluser]Bursh[/eluser]
Hey
I'm trying to manipulate an uploaded files name before saving it in the folder (so that I have a regular naming convention within the folders) but I can't seem to find any function that would allow that in CI. Can anybody help me out on this one?
Regards,
Bursh.
[eluser]fatnic[/eluser]
You could upload the file into a temp directory. Then do your 'manipulations', copy to permanent folder, then delete the temp file.
[eluser]Bursh[/eluser]
[quote author="fatnic" date="1219696045"]You could upload the file into a temp directory. Then do your 'manipulations', copy to permanent folder, then delete the temp file.[/quote]
I'd rather not do that, unless I have to, because that's a really long way around it.
[eluser]fatnic[/eluser]
Well after a quick re-read of the user guide, I can't see any way of changing the filename before you upload.
The only way I can think of to do it is not use the CodeIgniter upload library and use native PHP instead.
[eluser]Bursh[/eluser]
[quote author="fatnic" date="1219700026"]Well after a quick re-read of the user guide, I can't see any way of changing the filename before you upload.
The only way I can think of to do it is not use the CodeIgniter upload library and use native PHP instead.[/quote]
I thought of that too. I guess I'll try it that way unless anybody else can come up with a way.