Site Policies
このコンテンツはまだ日本語訳がありません。
Site Policies allow administrators to configure system-wide settings for media storage quotas and file upload limits. These policies help manage storage usage across the platform and ensure consistent upload restrictions for all users.
Overview
Section titled “Overview”Site Policies provide:
- User Media Storage Quota: Set maximum storage allowed per user
- Site Upload Limit: Set maximum file size for all uploads
- Unlimited Options: Support for unlimited storage and upload sizes
- Quick Presets: Common values for quick configuration
- Custom Values: Precise control with custom byte values
Accessing Site Policies
Section titled “Accessing Site Policies”There are two ways to access the Site Policies page:
Method 1: Via Admin Dashboard
Section titled “Method 1: Via Admin Dashboard”- Log in as an administrator
- Navigate to Site Admin in the top navigation
- Click on the “General” tab in the site administration menu
- Scroll to the “Security” section
- Click “Site security settings”
- You’ll be taken to the Site Policies page at
/admin/sitepolicies
Method 2: Direct Navigation
Section titled “Method 2: Direct Navigation”- Log in as an administrator
- Navigate directly to
/admin/sitepoliciesin your browser

User Media Storage Quota
Section titled “User Media Storage Quota”The User Media Storage Total setting controls how much storage space each user can use for their media files.
Setting Storage Quota
Section titled “Setting Storage Quota”- Navigate to the Site Policies page
- Find the “User Media Storage Total” section
- Select a preset value from the dropdown, or choose “Custom…” to enter a specific value
- Click “Save changes” to apply
Preset Options
Section titled “Preset Options”Quick preset options include:
- Unlimited: No storage limit (null value)
- 100 MB: 100 megabytes per user
- 500 MB: 500 megabytes per user
- 1 GB: 1 gigabyte per user
- 5 GB: 5 gigabytes per user
- 10 GB: 10 gigabytes per user (default)
- 50 GB: 50 gigabytes per user
- 100 GB: 100 gigabytes per user
- Custom: Enter a specific value in bytes
Custom Values
Section titled “Custom Values”To set a custom storage quota:
- Select “Custom…” from the dropdown
- Enter the value in bytes in the number input field
- The system will display the formatted value (e.g., “10 GB”) when a preset is selected
- Click “Save changes” to apply
Default Value
Section titled “Default Value”The default storage quota is 10 GB (10 * 1024 * 1024 * 1024 bytes) per user.
Unlimited Storage
Section titled “Unlimited Storage”To allow unlimited storage per user:
- Select “Unlimited” from the dropdown
- The value will be set to
null - Users will see “Unlimited” in their Media Drive
- Click “Save changes” to apply
Site Upload Limit
Section titled “Site Upload Limit”The Site Upload Limit setting controls the maximum file size allowed for all uploads across the platform.
Setting Upload Limit
Section titled “Setting Upload Limit”- Navigate to the Site Policies page
- Find the “Site Upload Limit” section
- Select a preset value from the dropdown, or choose “Custom…” to enter a specific value
- Click “Save changes” to apply
Preset Options
Section titled “Preset Options”Quick preset options include:
- Unlimited: No upload size limit (null value)
- 1 MB: 1 megabyte maximum
- 5 MB: 5 megabytes maximum
- 10 MB: 10 megabytes maximum
- 20 MB: 20 megabytes maximum (default)
- 50 MB: 50 megabytes maximum
- 100 MB: 100 megabytes maximum
- 500 MB: 500 megabytes maximum
- 1 GB: 1 gigabyte maximum
- Custom: Enter a specific value in bytes
Custom Values
Section titled “Custom Values”To set a custom upload limit:
- Select “Custom…” from the dropdown
- Enter the value in bytes in the number input field
- The system will display the formatted value (e.g., “20 MB”) when a preset is selected
- Click “Save changes” to apply
Default Value
Section titled “Default Value”The default upload limit is 20 MB (20 * 1024 * 1024 bytes).
Unlimited Uploads
Section titled “Unlimited Uploads”To allow unlimited upload sizes:
- Select “Unlimited” from the dropdown
- The value will be set to
null - All file uploads will be allowed regardless of size
- Click “Save changes” to apply
How Policies Are Applied
Section titled “How Policies Are Applied”Storage Quota Enforcement
Section titled “Storage Quota Enforcement”The storage quota is displayed to users in their Media Drive:
- Donut Chart: Shows used vs available storage when a limit is set
- Allowance Text: Displays the configured limit or “Unlimited”
- Real-Time Updates: Chart updates as users upload or delete files
The quota applies to all media files uploaded by a user, including:
- User avatars
- Assignment attachments
- Note images
- Course thumbnails
- Discussion attachments
- Any other media files
Upload Limit Enforcement
Section titled “Upload Limit Enforcement”The upload limit is enforced at the point of upload across all routes:
- User Media Drive: File uploads respect the limit
- Assignment Submissions: File attachments respect the limit
- Note Images: Image uploads respect the limit
- Course Thumbnails: Thumbnail uploads respect the limit
- User Avatars: Avatar uploads respect the limit
When a file exceeds the limit:
- The upload is rejected
- An error message is displayed showing the maximum allowed size
- The file size is formatted for readability (e.g., “File size exceeds maximum allowed size of 20 MB”)
Best Practices
Section titled “Best Practices”Setting Storage Quotas
Section titled “Setting Storage Quotas”- Consider User Needs: Set quotas based on typical usage patterns
- Start Conservative: Begin with lower quotas and increase as needed
- Monitor Usage: Review storage usage reports to adjust quotas
- Account for Growth: Plan for increased usage over time
- Unlimited for Small Sites: Consider unlimited storage for small deployments
Setting Upload Limits
Section titled “Setting Upload Limits”- Balance Usability and Storage: Set limits that allow necessary file types
- Consider File Types: Different content types may need different limits
- Network Considerations: Very large limits may cause timeout issues
- Security: Reasonable limits help prevent abuse
- Default Values: 20 MB is a good default for most use cases
Policy Management
Section titled “Policy Management”- Document Changes: Keep records of policy changes
- Notify Users: Inform users when policies change
- Test Changes: Verify that policy changes work as expected
- Monitor Impact: Watch for issues after policy changes
Troubleshooting
Section titled “Troubleshooting”Policies Not Applying
Section titled “Policies Not Applying”If policies don’t seem to be applying:
- Verify you saved the changes (click “Save changes” button)
- Refresh the page to see updated values
- Check that you’re viewing the correct policy settings
- Verify database connectivity
- Check system logs for errors
Users Hitting Quota Limits
Section titled “Users Hitting Quota Limits”If users are hitting quota limits:
- Review current storage usage in Admin Media Management
- Consider increasing the quota if appropriate
- Help users identify and delete unused files
- Provide guidance on file optimization
Upload Errors
Section titled “Upload Errors”If users are getting upload errors:
- Verify the upload limit is set appropriately
- Check that file sizes are within the limit
- Review error messages for specific issues
- Test uploads with different file types and sizes
Unlimited Settings Not Working
Section titled “Unlimited Settings Not Working”If unlimited settings aren’t working:
- Verify that “Unlimited” was selected and saved
- Check that the value is
nullin the database - Refresh the page to see updated settings
- Verify system globals are being fetched correctly
Related Features
Section titled “Related Features”- Media Management - Learn how users manage their media files
- Admin Media Management - View and manage all system media
- Maintenance Mode - Learn about other system-wide settings
