Introduction
This is an overview of how the images and videos are processed and stored when they are received.
Uploaded files
All files that are uploaded (photos or videos) are stored in the default Drupal files directory in a sub-directory that is specific to the user account doing the upload. This is done by creating a sub-directory using the account userid.
For example:
If the user id for an account was 324 then all Share-It uploaded files would be stored in /files/324
photos
When a photo is uploaded the original file (keeping the original filename) is stored along with a smaller image that is prefixed with "preview_". The dimensions of this "preview" image can be defined by an administrator in the Drupal set up menu. This is done so that the image size that is displayed in a blog entry can be set up to suit the site. This "preview" image is the one used when embedding a photo into a blog entry.
NB: The resize only takes place if the original uploaded image is bigger in dimension that the values set up by the administrator.
videos
When a video is uploaded it is stored in the same place as the photos and displayed in a blog entry by embedding it as a quicktime object. There is also an admin menu for video options that can be set up:
- Height and width of the embedded video
- Video scaling to width and height or a 1:1 fit
- Auto play video on display
- Show the embedded video control bar
- Auto looping - specify if the video restarts when it finishes playing
