February 2011

Feb 22, 2011

Over the last two weeks, Build a Module.com has released 17 videos on how to use the File API in Drupal 7. This week we wrap the series up with 7 more videos, completing the final example where we build an image gallery with managed files completely outside of the node system. We also added a video on X-sendfile, the Apache mod that makes the private file system scream, and we open up the black box of stream wrapper code.

In addition to this release, the full collection of all 24 File API videos is also now available as a purchasable download.

How to use the EntityFieldQuery class to match certain criteria and display the results

In case you missed the previous announcements, below are the videos that are free for all visitors plus a couple that are available to mailing list subscribers:

The new videos

And below are the new videos. At this time, they're only available to subscribers, but we occasionally open up subscriber-only videos to the public for special occasions, so keep your ears out (or follow us on Twitter).

Feb 12, 2011

If the new Drupal 7 File API has you befuddled with terms like stream wrappers, unmanaged files and URIs, then here's a little something to help clear the air. 7 new videos were added to Build a Module.com today to answer some tough questions about working with unmanaged files and how to protect your files with the private file system.

This follows hot on the heels of our previous release of File API videos where we set the groundwork for working with files in Drupal.

In addition, this weekend all of our Coding Standards videos are free to all, so if you need to brush up a little, now's a great time. We cover everything from working with arrays to working with white space and writing good comments.

Below are the list of File API videos we added. Several of them are available for anonymous users and mailing list subscribers, but I've gone ahead and marked the subscriber-only ones with a little *. Enjoy!

Feb 4, 2011

Working with files in Drupal 7 can seem complicated, especially with new the managed / unmanaged system, stream wrappers, and lots of new File API features. This new series of videos aims to demonstrate a clear example of working with files every step of the way, from managing uploads outside of nodes to working with private and public files, using files across different modules and tons more.

Some essential concepts around files are also covered, like the difference between a URI and a URL and how to set up PHP to properly handle uploads.

Today the first 10 videos of the File API series were released at Build a Module.com. Parts 1, 2 and 9 are available to everyone, and the other videos are accessible to subscribers.

Below is a list of shortcuts to each section. Enjoy!

  1. What this video covers and a demo of our node-free image gallery module>
  2. What the difference is between a URI and a URL
  3. What stream wrappers are and how they work
  4. How the private file system works
  5. How file and folder permissions work, and best practices
  6. How to set up PHP to properly handle file uploading
  7. How to create a simple form with an unmanaged file input
  8. How to use a form validation function to validate a file
  9. How to use hook_file_validate() to validate an uploaded file
  10. How to use core file validation functions and define your own validator