Uploading to custom folder

Code changed according to newer versions of Sails