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