Re: FileUploadHandler does strange things

2008-08-27 Thread mwebs
Hi Karen, for me it seems very very strange. The code I used is so simple and theoretical does not contain any bugs. I deleted every file that I uploaded in a former trial, so I dont have any file with the - for test purposes static - filename test.txt in my media-directory. What happens is what

Re: FileUploadHandler does strange things

2008-08-27 Thread Karen Tracey
On Wed, Aug 27, 2008 at 1:16 PM, mwebs <[EMAIL PROTECTED]> wrote: > > Thanks for your help. > > Datafile is a model and just contains a CharField, a FileField a > ForeignKey and some Booleanfields. > --- > class DataFile(models.Model): >name = model

Re: FileUploadHandler does strange things

2008-08-27 Thread mwebs
Thanks for your help. Datafile is a model and just contains a CharField, a FileField a ForeignKey and some Booleanfields. --- class DataFile(models.Model): name = models.CharField(max_length=255, null = True) file = models.FileField(upload_to="

Re: FileUploadHandler does strange things

2008-08-27 Thread Karen Tracey
On Wed, Aug 27, 2008 at 4:30 AM, mwebs <[EMAIL PROTECTED]> wrote: > > Hm, > > now I have the newest Revision 8618, but still the missbehaviour that > the file is copied in an endless loop. > any ideas? > That fix was tested pretty extensively so I'm pretty sure it fixed the base problem. I do no

Re: FileUploadHandler does strange things

2008-08-27 Thread mwebs
Hm, now I have the newest Revision 8618, but still the missbehaviour that the file is copied in an endless loop. any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: FileUploadHandler does strange things

2008-08-26 Thread mwebs
Hi Karen, yes I also stumbled over this ticket 3 minutes ago. My Revision is 8423 - so I better check out a new one :-) Hope this will fix it, but I guess. Thank you! Toni --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

Re: FileUploadHandler does strange things

2008-08-26 Thread Karen Tracey
On Tue, Aug 26, 2008 at 5:27 PM, mwebs <[EMAIL PROTECTED]> wrote: > ... > 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

FileUploadHandler does strange things

2008-08-26 Thread mwebs
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(...) dat