Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 7 and Version 8 of FileUploadTutorial


Ignore:
Timestamp:
08/25/06 14:28:11 (13 years ago)
Author:
ivolooser
Comment:

Comment for Imageupload...

Legend:

Unmodified
Added
Removed
Modified
  • FileUploadTutorial

    v7 v8  
    8686                        turbogears.flash("File already uploaded: %s is already at %s" %  (upload_file.filename, target_file_name)) 
    8787                except SQLObjectNotFound: 
     88                        #The Parameter 'w' here should change to 'wb' when you Upload Pictures on Windows 
     89                        # because 'wb' means binary. If you use 'w' there whould be earlier then expected an error. 
     90                        # 'w' conveft linefeeds to Windows-Style and the images are broken-down! 
    8891                        f = open(target_file_name, 'w') 
    8992                        f.write(data)