How to put images in Drupal content
This kba is part of the series: How to format Drupal content
How do I put images in Drupal content?
Put an image into the Drupal file system.
- Create a content page (blog/article, if you haven't already) that you intend to use the image in.
- Attach the image file you want to use
- Edit the content page.
- Expand "File Attachments".
- Click the "Browse" button (and find the file on your computer).
- Click the "Attach" button.
- Click the "Submit" button at the bottom of the Edit form.
The file is now in the drupal filesystem and can be referenced from any page. Drupal files are stored in:
www.unicon.net/files
Reference the image in the content.
- Edit the content page.
- In the body textarea, find the place in your html to put the image.
- Input the following html:
- Click the "Submit" button at the bottom of the Edit form.
- Check and verify that the image appears. If only the alt text appears, your src reference is not correct. Try verifying the filename.
Here's an example:
![]()
Remove the link of the file as an attachment (optional).
- Edit the content page.
- Uncheck the "List" checkbox next to the image in the "File Attachments" section.
- Click the "Submit" button at the bottom of the Edit form.
- Verify that the file is no longer listed as an attachment.
Viola!
Add styling to the image (optional).
"screenshot" is an optional class you can add to an image that adds a border, drop shadow, and spacing to the image.
Which ends up looking like this:
![]()
