docs: function(file, options, callback) {
              // If the file is a string, we assume it's a path on disk
              if (_.isString(file)) {
                  try {
                      file = fs.createReadStream(file);
                  } catch (err) {
                      return callback({'message': 'A stream could not be opened for the provided path', 'err': err});
                  }
              }
  
              // Attach an error listener to the stream
              file.on('error', function(err) {
                  return callback({'message': 'An error occurred when reading from the stream', 'err': err});
              });
  
              // Upload the file
              var data = {'file': file};
              addSizes(data, options, 'thumbnailSizes');
              addSizes(data, options, 'imageSizes');
              return processr._request('POST', '/resources', data, callback);
          }