Questions tagged [imagefield]

A place to store or display a graphic image.

"Image field" is a generic term that typically would belong in a or setting such as:

It appears to be a synonym for .

342 questions
0
votes
1 answer

Where does Django store bound ModelForm's files.FileField UploadedFile instance?

I'm creating a ModelForm: # .. forms.py .. class myform(forms.ModelForm): img = forms.ImageField(required=True, label='Required photo') class Meta: model = mymodel fields = '__all__' # .. view.py .. def myview(request): .. if…
Pavel Daynyak
  • 1,714
  • 1
  • 11
  • 7
0
votes
1 answer

Displaying an image field with multiple values in a content type in drupal 7

I have a content type in which i had added image field. I can successfully displaying my body content having multiple instances by using $body = field_get_items('node',$node, 'body'); foreach ($body as $body) { print $body['value']; but unable…
nomeer
  • 205
  • 3
  • 13
0
votes
1 answer

ImageField not uploading correctly

I am trying to upload an image to the server. No matter what I do, it doesn't appear to properly upload the image. Here is my field in the model: image = models.ImageField(upload_to='uploads/images/staff', verbose_name='Staff Member Photo',…
0
votes
1 answer

django save imagefile in static dir

I have some images i retrieve from http://image.eveonline.com/ that i want to save. Now part of those will be static, while others might change. Instead of pulling all static images from their site, i want to do this when they are needed (if they…
Hans de Jong
  • 2,030
  • 6
  • 35
  • 55
0
votes
1 answer

How do I get the image url from an image field type

I'm working on a module that will display images, so for this module I created a specific content type. One of the fields from this content type is an image, named field_ssimage. I found the table in my database named field_data_field_ssimage, but…
Neglexis
  • 111
  • 1
  • 1
  • 12
0
votes
1 answer

Django : accessing uploaded picture from ImageField

Hi I'm having a problem about referring to uploaded images in HTML. I'm using ImageField to save profile pictures : picture = models.ImageField(upload_to='stories/static/stories/profile_images/', blank=True) As you can see, It'll upload to
Hello
  • 57
  • 6
0
votes
1 answer

UpdateView clean deleted form but does not actually delete it

I have formset of modelforms contains ImageField. After click on delete checkbox near initial form, and submit button - I have same number of forms in formset, and same number of initial forms, but those which have been "deleted" now are without…
madzohan
  • 11,488
  • 9
  • 40
  • 67
0
votes
1 answer

Updateing image field fails for any user except super user in Orchard CMS

I installed ImageField and used it to create News widget , SlideShow widget and ... When I try to change the picture and publish changes for any item containing ImageField , if the super user is logged in, all changes saves successfully. But if any…
0
votes
1 answer

How to use Multiupload Imagefield in Drupal 7 Form API?

I'm trying to make work Multiupload Imagefield Widget in my Drupal 7 custom module with Form API... but it doesn't work :( When I push the "Upload" button the throbber appears for a second and nothing more happens, only refreshing page. Can anybody…
0
votes
1 answer

accessing image control from codebehind

Compiler Error Message: CS0030: Cannot convert type 'System.Web.UI.Control' to 'System.Web.UI.WebControls.ImageField' Line 107: protected void BookListView_DataBinding(object sender, EventArgs e) Line 108: { Line 109: ImageField img =…
Mahdi
  • 175
  • 3
  • 16
0
votes
2 answers

getting all ImageFields associated with a node

How do i get all the image fields attached to a content type on a full node without knowing the field names? Just out of curiosity, is there a way we can get all the fields of a specific type? I am developing a module that needs image fields tied…
xmaestro
  • 1,084
  • 2
  • 16
  • 44
0
votes
1 answer

Use ImagField from Django to save image paths in different directory other than MEDIA_ROOT

I have created a Model that should only be accessed by the admin user and I would like to user the admin interface to manage theinstances I create. So basically this will be used to generate static. One of the fields I would like to use is the…
Pedro
  • 185
  • 1
  • 1
  • 6
0
votes
1 answer

Setting up media path in Django to object DateField information

I am trying to setup an user-uploaded class through the backend as Django admin. I am trying to make it so the path of the ImageField is based on the user-inputted DateField information; this is what I have. from django.db import models from…
wmlk
  • 1
  • 1
  • 2
0
votes
1 answer

ImageField not failing at IOError exception

Hay, i have a model which saves 2 images class Picture(models.Model): picture = models.ImageField(upload_to=make_filename) thumbnail = models.ImageField(upload_to=make_thumb_filename) car = models.ForeignKey('Car') created_on =…
dotty
  • 40,405
  • 66
  • 150
  • 195
0
votes
1 answer

Lead image uploading issue in drupal node,

In the drupal node I've one field called 'add lead image' of type image, whenever I want to upload image sometime it's uploading sometime not. This is strange issue for me. Can anyone help me in solving this issue.