Browse Source

[fb] Support upload of tar.gz archive

krish 11 years ago
parent
commit
70d15bf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/filebrowser/src/filebrowser/views.py

+ 1 - 1
apps/filebrowser/src/filebrowser/views.py

@@ -1235,7 +1235,7 @@ def _upload_archive(request):
                     raise PopupException(_('Could not extract contents of file.'))
                     raise PopupException(_('Could not extract contents of file.'))
                 # Move the file to where it belongs
                 # Move the file to where it belongs
                 dest = dest[:-4]
                 dest = dest[:-4]
-            elif dest.endswith('.tar.gz'):
+            elif dest.endswith('.tar.gz') or dest.endswith('.tgz'):
                 print uploaded_file
                 print uploaded_file
                 temp_path = archive_factory(uploaded_file, 'tgz').extract()
                 temp_path = archive_factory(uploaded_file, 'tgz').extract()
                 if not temp_path:
                 if not temp_path: