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
-
General Concepts
-
File API functions
-
File usage functions
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
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
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