@@ -72,8 +72,8 def index(request): | |||||
72 | ) |
|
72 | ) | |
73 | else: |
|
73 | else: | |
74 | fs = FileSystemStorage(location='/tmp') |
|
74 | fs = FileSystemStorage(location='/tmp') | |
75 | fs.save(f.name, f) |
|
75 | fs.save(files[0].name, files[0]) | |
76 | filename = os.path.join('/tmp', f.name) |
|
76 | filename = os.path.join('/tmp', files[0].name) | |
77 | ext = filename.split('.')[-1] |
|
77 | ext = filename.split('.')[-1] | |
78 | if ext not in ('hdf5', 'h5'): |
|
78 | if ext not in ('hdf5', 'h5'): | |
79 | convert = True |
|
79 | convert = True |
General Comments 0
You need to be logged in to leave comments.
Login now