mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-24 16:21:53 +00:00
fix
This commit is contained in:
parent
cef872d038
commit
f874bdc55e
@ -931,6 +931,7 @@ def gpxupload(request, folder=None):
|
|||||||
filesaved = True
|
filesaved = True
|
||||||
else: # multiple is a list of content
|
else: # multiple is a list of content
|
||||||
for f in multiple:
|
for f in multiple:
|
||||||
|
if gpxvalid(f.name):
|
||||||
try: # crashes in Django os.chmod call if on WSL, but does save file!
|
try: # crashes in Django os.chmod call if on WSL, but does save file!
|
||||||
saved_filename = fs.save(f.name, content=f)
|
saved_filename = fs.save(f.name, content=f)
|
||||||
except:
|
except:
|
||||||
@ -941,6 +942,9 @@ def gpxupload(request, folder=None):
|
|||||||
if saved_filename.is_file():
|
if saved_filename.is_file():
|
||||||
actual_saved.append(saved_filename)
|
actual_saved.append(saved_filename)
|
||||||
filesaved = True
|
filesaved = True
|
||||||
|
else:
|
||||||
|
print(f"gpxupload(): not a GPX file {f.name=}")
|
||||||
|
|
||||||
print(f"gpxupload() drop through")
|
print(f"gpxupload() drop through")
|
||||||
files = []
|
files = []
|
||||||
dirs = []
|
dirs = []
|
||||||
|
Loading…
Reference in New Issue
Block a user