Problem:
There is a Drupal Cloud limitation regarding granting permissions to accessing the sites file system.
By default the Content managers do have access to the File Browser; however this is because Content Managers have the
'Node: Bypass content access control ' permission set. If there are restricted roles defined, like Content Editor who may only edit certain content types, they will not be able to browse the file system to insert images of files. It is clearly undesirable to have to grant them such a broad permission.
In non Drupal Cloud, where ICME module configuration is available, more granular permissions to access the file system can be set.
Example: In Drupal Cloud unless you are a Content Manager,
results in
Work Around:
Add Image (and/or File) Field to Content Type definition
However if you define an image field ( or a file field) in the content type.
This will provide a 'Content Editor' who only has sufficient permission to edit that content type, the ability to upload images/ files and insert them in the body of the content.
Define image and/or file fields but set the display settings for these fields to ' hidden'
You can specify in the field definition:
- the number of files
- Allowed file extensions
- max upload size
- maximum allowed image size
Example of Inserting an image:
- Create/ edit page
- Upload image into image field
- Choose File
- Click Upload once the file has been added. Image will display in File Information box.
- Obtain URL for the uploaded image
- Highlight image link in the File Information box.
- Right click to get image URL ( Copy Link )
- Back in the editor for the Body, Click on insert Image button
- Insert the 'adjusted' URL into the URL field of the Image Properties window, Click OK
- Adjust URL by making it a relative link (ie. remove http://host-name)
- (example: /sites/default/files/dinner.jpeg )
- Save
Example of Inserting a link to a file : (similar to inserting images)
- Create / edit page
- Upload file into file field
- Choose file
- Upload
- Obtain URL for the uploaded file
- Back in the editor for the Body, Click on insert Link button
- Insert the 'adjusted' URL into the URL field of the Link window
- Save