Skip to content

Commit

Permalink
Fix rev 3535 big javascript file
Browse files Browse the repository at this point in the history
  • Loading branch information
rllola committed Jul 16, 2018
1 parent 113e7e0 commit 8e1c0a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/Bigfile/BigfilePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,9 @@ def actionFile(self, file_path, *args, **kwargs):
path_parts = kwargs["path_parts"]
site = self.server.site_manager.get(path_parts["address"])
big_file = site.storage.openBigfile(path_parts["inner_path"], prebuffer=2 * 1024 * 1024)
kwargs["file_obj"] = big_file
kwargs["file_size"] = big_file.size
if big_file:
kwargs["file_obj"] = big_file
kwargs["file_size"] = big_file.size

return super(UiRequestPlugin, self).actionFile(file_path, *args, **kwargs)

Expand Down

0 comments on commit 8e1c0a7

Please sign in to comment.