From: Rodney Ewing Date: Wed, 14 Aug 2013 19:25:49 +0000 (-0700) Subject: rewind the file to the begining X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8a528add8bbd4f448833311da612e8a1df6bef28;p=mediagoblin.git rewind the file to the begining --- 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)