function track_validate_file
sti - May 29, 2009 - 14:15
| Project: | Track |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
The upload gpx file validation fails with IE. (IE uploads filname.gpx.txt?)
There is a ereg_replace going on in track.module:
if ($file = file_check_upload('file')) {
$ext = strtolower(ereg_replace("^.+\\.([^.]+)$", "\\1", $file->filename));
if ($ext != "gpx") {
Does this remove everything but the extension and check that it is gpx?
This check should also remove all non English letters from the filename and check if the filename contains .txt in front of .gpx or else the possessing of the gpx file fails.

#1
I'm not able to reproduce this. What version of IE / Windows are you running?