added some code to help debug issue 1471
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -1467,6 +1467,10 @@ class SQLFORM(FORM):
|
|||||||
### do not know why this happens, it should not
|
### do not know why this happens, it should not
|
||||||
(source_file, original_filename) = \
|
(source_file, original_filename) = \
|
||||||
(cStringIO.StringIO(f), 'file.txt')
|
(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,
|
newfilename = field.store(source_file, original_filename,
|
||||||
field.uploadfolder)
|
field.uploadfolder)
|
||||||
# this line was for backward compatibility but problematic
|
# this line was for backward compatibility but problematic
|
||||||
|
|||||||
Reference in New Issue
Block a user