From 8a528add8bbd4f448833311da612e8a1df6bef28 Mon Sep 17 00:00:00 2001 From: Rodney Ewing Date: Wed, 14 Aug 2013 12:25:49 -0700 Subject: [PATCH] rewind the file to the begining --- mediagoblin/media_types/ascii/processing.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mediagoblin/media_types/ascii/processing.py b/mediagoblin/media_types/ascii/processing.py index 82ee9cd7..d69af1bf 100644 --- a/mediagoblin/media_types/ascii/processing.py +++ b/mediagoblin/media_types/ascii/processing.py @@ -87,6 +87,9 @@ class CommonAsciiProcessor(MediaProcessor): d_charset, self.charset)) + # Rewind the file + orig_file.seek(0) + def store_unicode_file(self): with file(self.orig_filename, 'rb') as orig_file: self._detect_charset(orig_file) -- 2.25.1