Re: cannot store images into file system using Imageupload

2009-08-24 Thread djangonoob
hi Ronghui, may i know what do u mean by "didnt save the file" using the form save () method? Do u mean that in Guptha's views.py, the function should have: form.save() in order to save the image? Best Regards. On Jul 24, 7:20 pm, Ronghui Yu wrote: > You didn't save the file in the form save(

Re: cannot store images into file system using Imageupload

2009-07-24 Thread Ronghui Yu
You didn't save the file in the form save() method. In the form, self.cleaned['photo1'] is an object of UploadedFile(may be typo error) You need to save it if you handle the save method by yourself Actually, you don't need to redefine those fields in the form if what you do is the same as what D

cannot store images into file system using Imageupload

2009-07-23 Thread guptha
hi friends I 'm facing a wried behavior of Imageupload In Models.py class Market(...) title_name=models.CharField(max_length=125) photo1 = models.ImageField(upload_to= 'img/marketplace/%Y/%m/ %d', null=True, blank=True) In views.py def postyour_adds(request): if request.method=