Fixes file extension issue.
FILE_EXTENSION fixed to be accessable.