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),
'menu_item' => variable_get('restful_hook_menu_base_path', 'api') . '/file-upload',
'options' => array(),
);
}