CodeIgniter Forums

Full Version: How to standardize a document name when uploaded?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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.