Advanced File Handling in Drupal - Drupal Training Curriculum for Drupal Companies

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
You are viewing a wiki page. You are welcome to join the group and then edit it. Be bold!

Back to Drupal Training Syllabus

Advanced File Handling in Drupal

It is important in web development world, to know how to handle various kind of files, effectively.
The Drupal 7 File API provides an abstraction layer for accessing virtually any type of resource as a normal file. This is accomplished by leveraging the power of PHP stream wrappers allowing greater collaboration and crossover with a variety of modules. Modules will typically no longer need to know about the filesystem implementation of another in order to interact.

Learning Objectives

Trainee will be able to handle files easily, effectively using File API

Course Content

  1. General Concepts

  2. The File module enables you to upload and attach files to content and to manage these uploads if you have the appropriate permissions. This module is responsible for validating file content and managing uploaded files. It also provides options for displaying file content.
    https://www.drupal.org/documentation/modules/file

  3. File API functions

  4. The Drupal 7 File API provides an abstraction layer for accessing virtually any type of resource as a normal file.
    https://www.drupal.org/node/877212

  5. File usage functions

  6. One of the things to think about when using the Drupal 7 File API is the new file_usage_* functions.
    https://www.drupal.org/node/1017800

Reference

https://www.drupal.org/node/555118

Exercise

Exercise on file upload

Next » Field API