Re: ImageField upload not working in django.views.generic.create_update.update_object?

2006-06-14 Thread Jay Parlar
On 6/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Jay- > > In case you didn't noticed, Jacob did check in your patch, and it > totally fixed the problem on my end. Thanks so much! :) Yep, I saw that yesterday, I was excited to finally contribute something back to this fantastic set of

Re: ImageField upload not working in django.views.generic.create_update.update_object?

2006-06-14 Thread [EMAIL PROTECTED]
Jay- In case you didn't noticed, Jacob did check in your patch, and it totally fixed the problem on my end. Thanks so much! :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: ImageField upload not working in django.views.generic.create_update.update_object?

2006-06-13 Thread Jay Parlar
I just fired off a message to Django-dev, asking for ideas for a new FileField API. If anyone was reading this thread and is interested in such a thing, come to Django-dev and help me out. Jay P. --~--~-~--~~~---~--~~ You received this message because you are

Re: ImageField upload not working in django.views.generic.create_update.update_object?

2006-06-13 Thread Jay Parlar
On 6/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Thanks a lot, Jay. I'll smack Jacob over the head (I don't actually > know if he wrote that or not, but any excuse to smack him is a good > one) and point him to your ticket. Thanks a lot! > > Jeff Note that my ticket (1994) isn't a

Re: ImageField upload not working in django.views.generic.create_update.update_object?

2006-06-13 Thread [EMAIL PROTECTED]
Thanks a lot, Jay. I'll smack Jacob over the head (I don't actually know if he wrote that or not, but any excuse to smack him is a good one) and point him to your ticket. Thanks a lot! Jeff --~--~-~--~~~---~--~~ You received this message because you are

Re: ImageField upload not working in django.views.generic.create_update.update_object?

2006-06-13 Thread Jay Parlar
On 6/13/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > On 6/13/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > On 6/13/06, Jay Parlar <[EMAIL PROTECTED]> wrote: > > > I don't know if this was on purpose, or if it was simply forgotten, > > > but I suggest you walk over to the desk of whoever

Re: ImageField upload not working in django.views.generic.create_update.update_object?

2006-06-13 Thread Jeremy Dunck
On 6/13/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > On 6/13/06, Jay Parlar <[EMAIL PROTECTED]> wrote: > > I don't know if this was on purpose, or if it was simply forgotten, > > but I suggest you walk over to the desk of whoever wrote that, and > > smack them on the head :) > > Perhaps refactor

Re: ImageField upload not working in django.views.generic.create_update.update_object?

2006-06-13 Thread Jeremy Dunck
On 6/13/06, Jay Parlar <[EMAIL PROTECTED]> wrote: > I don't know if this was on purpose, or if it was simply forgotten, > but I suggest you walk over to the desk of whoever wrote that, and > smack them on the head :) Perhaps refactor to UploadField or somesuch while you're at it. ;-)

Re: ImageField upload not working in django.views.generic.create_update.update_object?

2006-06-13 Thread Jay Parlar
On 6/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Nope, looks like neither FileField nor ImageField work for me. Ok, I got it figured out: Interestingly enough, create_object works just fine. update_object, as you've noted, doesn't. The reason is that in a Django 'request' object,

Re: ImageField upload not working in django.views.generic.create_update.update_object?

2006-06-13 Thread Jay Parlar
On 6/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > The images are not getting uploaded at all. They are still zero files > in my upload path on the server. :) Out of curiosity, if you change your model to use FileField instead of ImageField, does it work? Jay p

Re: ImageField upload not working in django.views.generic.create_update.update_object?

2006-06-13 Thread [EMAIL PROTECTED]
The images are not getting uploaded at all. They are still zero files in my upload path on the server. :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: ImageField upload not working in django.views.generic.create_update.update_object?

2006-06-13 Thread Jay Parlar
On 6/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > It actually turns out that the mimetype encoding was NOT the problem. I > did forget to do it, but when i added it, it still no workie. > > Either I don't understand how to do something here, or there's a bug in > update_object. Jeff,

Re: ImageField upload not working in django.views.generic.create_update.update_object?

2006-06-13 Thread [EMAIL PROTECTED]
It actually turns out that the mimetype encoding was NOT the problem. I did forget to do it, but when i added it, it still no workie. Either I don't understand how to do something here, or there's a bug in update_object. --~--~-~--~~~---~--~~ You received this

Re: ImageField upload not working in django.views.generic.create_update.update_object?

2006-06-13 Thread Jay Parlar
On 6/13/06, Viktor <[EMAIL PROTECTED]> wrote: > > I have a problem with an update_object generic view and ImageField. The > create_object view works great, but update_object doesn't upload the > image?! I set the mimetype ;) > > here is the snippet from my object_form.html template (both >

Re: ImageField upload not working in django.views.generic.create_update.update_object?

2006-06-13 Thread James Bennett
On 6/13/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > Hey, I want one of those for my projects! ;) They can be expensive to keep. Food and shelter and caffeine and all that. -- "May the forces of evil become confused on the way to your house." -- George Carlin

Re: ImageField upload not working in django.views.generic.create_update.update_object?

2006-06-13 Thread Viktor
I have a problem with an update_object generic view and ImageField. The create_object view works great, but update_object doesn't upload the image?! I set the mimetype ;) here is the snippet from my object_form.html template (both create_object and update_object use the same template):

Re: ImageField upload not working in django.views.generic.create_update.update_object?

2006-06-13 Thread Jeremy Dunck
On 6/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Remembering that I work with most of the core Django developers, I > thought I'd ask those guys. Trurns out I made a stupid mistake and > forgot to multipart encode my form in my template. Doh! Hey, I want one of those for my projects!

Re: ImageField upload not working in django.views.generic.create_update.update_object?

2006-06-13 Thread [EMAIL PROTECTED]
Remembering that I work with most of the core Django developers, I thought I'd ask those guys. Trurns out I made a stupid mistake and forgot to multipart encode my form in my template. Doh! --~--~-~--~~~---~--~~ You received this message because you are

ImageField upload not working in django.views.generic.create_update.update_object?

2006-06-13 Thread [EMAIL PROTECTED]
I've got a simple form using the update_object generic view that seems to work great -- expect for the two image fields. They both work fine in the admin -- I can easily upload images to them. But, in the generic view form, images don't upload. I can select an image and submit the form just fine.