diff --git a/VERSION b/VERSION index 93da7bc1..aea70d93 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.4.6-stable+timestamp.2013.05.08.16.44.02 +Version 2.4.6-stable+timestamp.2013.05.08.16.52.12 diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index 988e60e1..60364751 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -1467,6 +1467,10 @@ class SQLFORM(FORM): ### do not know why this happens, it should not (source_file, original_filename) = \ (cStringIO.StringIO(f), 'file.txt') + else: + # this should never happen, why does it happen? + print 'f=',repr(f) + continue newfilename = field.store(source_file, original_filename, field.uploadfolder) # this line was for backward compatibility but problematic