Hello, I have a class that looks like this: -------------------------- class MyUploadHandler(TemporaryFileUploadHandler): pass --------------------------
my view looks like this: ----------------------- request.upload_handlers = [uploadhandlers.MyUploadHandler()] datafile = DataFile(...) datafile.file = form.cleaned_data['file'] datafile.file.save('aa.txt', request.FILES['file'], save=False) datafile.save() -------------------------------- When I am uploading a file and taking a look at the directory where the files should be stored, I produced 212 files aa.txt to aa_________...___.txt. Furthermore I get an IOError for "no such file or directory", which is probably because filenames longer than 212++ are not allowed. When I edit my UploadHandlerClass and extending from MemoryFileUploadHandler: -------------------------- class MyUploadHandler(MemoryFileUploadHandler): pass -------------------------- everything works fine. So the problem must lie in the native implementation of TemporaryFileUploadHandler. I have seldom seen such strange things. Any ideas? I already spent - no wastet - hours for that. Thanks, Toni --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---