By davedg629 on
I am using Drupal 5 and have created a custom content type that has an image field (using the imagefield module). I tested the new content type but the image I uploaded does not show up. All of the other information I entered into to text fields and date fields showed up but not the image. Any ideas why? Theres not even a red x where the image is supposed to be. Any help is appreciated. Also this leads me to ask if I am using the best module to create an image field. Is there a better module I should be using. I basically just want to create a content type that allows the users to input a title for an object (like a car model), a description, and then a picture of the object.
Dave
Comments
=-=
which version of the imagefield.module ?
when you view the source can the image be located in the HTML ?
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
I am using version 5.x-2.1
I am using version 5.x-2.1 (reccomended version for drupal 5). I cannot find any html in the source file related to the image I uploaded.
=-=
when the node is previewed is the image in place ?
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
No, the preview doesn't show
No, the preview doesn't show the image either. I will also note that I haven't placed any additional restrictions on the image upload (like image size) and the image I am uploading is a .gif which is allowed by the module.
Check with FTP if the file
Check with FTP if the file has been really uploaded or not under your files directory, and where exactly it is.
Then check in your browser the html page source of the page, to see if there an img tag for your image or not, and if it has the correct path.
I am running this site on a
I am running this site on a local server, but anyways the picture file is in the "files" folder and I can navigate to its page (localhost/drupal/files/imagename.gif). There is no img tag in the html source for the page. In the edit view of the content it shows a thumbnail of the picture I uploaded and has a place where I can upload another. It apparently just is not adding the html code for the pic into the content "view".
Edit one of your nodes which
Edit one of your nodes which have attached images and check its "input format". If it is Filtered HTML, it strips the "img" HTML tags, so you need to add "img" to the allowed HTML tags.
I clicked on the "edit" tab
I clicked on the "edit" tab on a published node and I dont see anywhere where I can change the "input format".
The main admin (user 1) must
The main admin (user 1) must
(a) either allow using the needed img tags in the "Filtered HTML" input format, which is available to everyone.
(b) or allow some trusted user roles to choose the "Full HTML" input format (then the choice will appear in their editing forms).
I went into Input Formats
I went into Input Formats and add the img tag to the filtered html format. Ran a test and it is still not displaying my image.
And still you are not
And still you are not getting an img tag in the html source in the browser?
nope, there is img tags for
nope, there is img tags for the site logo and a logo in the footer but not img tag referencing the picture i uploaded via content subission, thanks for all help by the way
=-=
I can't quite figure out where the problem may lie. I'm using 2.1 on a sandbox and its working perfectly fine.
:still digging:
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
I created a view to show
I created a view to show every picture field that was created and it worked. All of the images I uploaded via content submission are listed and shown. This is so wierd, the pictures will show up when I create a view but they wont show up in submitted content node.
It's a bug:
It's a bug: http://drupal.org/node/260585
Very sadly, the HEAD version (for D6) is full of those kinds of bugs, and imagefield for D6 is not usable at all. :(