You are here

files_upload__1_0.inc in RESTful 7

File

plugins/restful/file/files_upload/1.0/files_upload__1_0.inc
View source
<?php

if (variable_get('restful_file_upload', FALSE)) {
  $plugin = array(
    'label' => t('File upload'),
    'description' => t('A file upload wrapped with RESTful.'),
    'resource' => 'files',
    'class' => 'RestfulFilesUpload',
    'entity_type' => 'file',
    'authentication_types' => TRUE,
    'authentication_optional' => variable_get('restful_file_upload_allow_anonymous_user', FALSE),
    // We will implement hook_menu() with custom settings.
    'menu_item' => variable_get('restful_hook_menu_base_path', 'api') . '/file-upload',
    // Set the default validators, scheme, and replace as used in
    // file_save_upload().
    'options' => array(),
  );
}