recognizes and refuses kml (through email)
This commit is contained in:
@@ -997,6 +997,11 @@ def new_workout_from_file(r, f2,
|
||||
message = "It looks like this file doesn't contain stroke data."
|
||||
return (0, message, f2)
|
||||
|
||||
if fileformat == 'kml':
|
||||
os.remove(f2)
|
||||
message = "KML files are not supported"
|
||||
return (0, message, f2)
|
||||
|
||||
# Some people upload corrupted zip files
|
||||
if fileformat == 'notgzip':
|
||||
os.remove(f2)
|
||||
|
||||
Reference in New Issue
Block a user