Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: [FIX] Uppercase file extension  (Read 3514 times)


  • Hero Member
  • *****
  • Karma: 23
  • Posts: 873
[FIX] Uppercase file extension
« on: May 24, 2007, 06:42:33 pm »

I've see in this forum some people with problems when try to upload some file with uppercase extension on their files.
To solve this issue, locate under "function files()" this line:
$filename = $_FILES['imagefile']['name'];
And replace with this:
$filename = strtolower($_FILES['imagefile']['name']);
This modification remove all uppercase to lowercase in the uploaded file, name and extension.
Remember, to leave your 'allowed' extension list to lowercase.
La comunidad sNews en tu idioma!
Comunidad sNews en Espaņol