file_management.rst 2.1 KB

12345678910111213141516171819
  1. File Management
  2. ===============
  3. User Quotas
  4. -----------
  5. Data importers that use the Tripal API and Tripal supported widgets automatically associate uploaded files with users. If you are allowing end-users to upload files you may want to consider adding quotas to prevent the server storage from filling. To ensure that users do not exceed the limits of the server a quota system is available. Navigate to **Administer > Tripal > User File Management** and click the **User Quotas** tab to reveal the following page:
  6. .. image:: ./file_management.user_quotas.1.png
  7. First, the total amount of space consumed by all uploaded files is shown at the top of the page. Initially this will indicate 0 B (for zero bytes); as users upload files this value will change. You may return to this page in the future to check how much space is currently used by user uploads. Here you can also specify the default system-wide quota that all users receive. By default this is set to 64 Megabytes and an expiration of 60 days. Once a file has existed on the site for 60 days the file is marked for deletion and will be removed when the Drupal cron is executed. The default of 64MB per user is most likely too small for your site. Adjust this setting and the days to expire as appropriate for your site's expected number of users and storage limitations and click the **Save** button to preserve any changes you have made.
  8. In addition to the default settings for all users, you may want to allow specific users to have a larger (or perhaps smaller) quota. You can set user-specific quotas by clicking the **Add Custom User Quota** link near the bottom of the page. The following page appears:
  9. .. image:: ./file_management.user_quotas.2.png
  10. Here you must specify the Drupal user name of the user who should be granted a custom quota. This field will auto populate suggestions as you type to help you find the correct username. Enter the desired quota size and expiration days and click the **Submit** button. you will then see the user-specific quota listed in the table at the bottom of the page:
  11. .. image:: ./file_management.user_quotas.3.png