In order to view this lesson, you must purchase this course.
To help reduce code repetition in our projects, Sails comes with helper methods that allow you to extract logic inside of one location. Using this concept, I'll walk you through how to take our file uploading code and put it in a single file. Calling this code from multiple files is really easy and we'll see how to retrieve our upload file urls at the very end.