OriginalBrownster wrote: > This unfunction is working but i'm currently using > .open.file.read(8192) > to read the data then copy to the directory. This does not work for > word docs and pictures and other file types.
You were probably opening the target file with open(fn, 'w') whereas you should have used open(fn, 'wb'), i.e in binary mode. Otherwise the file can get corrupted. Chris --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~----------~----~----~----~------~----~------~--~---

