Please login or register.

Login with username, password and session length
Advanced search  

News:

You need/want an older version of sNews ? Download an older/unsupported version here.

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

bramsyuur

  • Hero Member
  • *****
  • Karma: 23
  • Posts: 873
    • http://snews.vietbee.net
[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:
Quote
$filename = $_FILES['imagefile']['name'];
And replace with this:
Quote
$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.
Logged
La comunidad sNews en tu idioma!
Comunidad sNews en Espaņol