CodeIgniter Forums
How to standardize a document name when uploaded? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: How to standardize a document name when uploaded? (/showthread.php?tid=75976)



How to standardize a document name when uploaded? - christaliise - 04-03-2020

How do I standardize a document name when uploaded for example C:xampp/htdocs/member/$user/photo/chris.jpg to be automatically changed to C:xampp/htdocs/member/$user/photo/photo.jpg

Anybody with any suggestions?


RE: How to standardize a document name when uploaded? - InsiteFX - 04-05-2020

You could use the php file/directory methods to search each directory and check the name if it
needs to be changed then change it to what you want.