I try to upload some files using file.create - only the first one is uploaded correctly.

While trying to upload second one I always get:

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function '_file_resource_access' not found or invalid function name in services_controller_execute() (line 141 of /etc/drupal7/all/modules/services/services.runtime.inc)

After clearing all caches I can upload files again.

Comments

slazyk’s picture

Title: second file upload fails authentication ('_file_resource_access' not found) » second file upload fails access check ('_file_resource_access' not found)
kylebrowning’s picture

Status: Active » Closed (fixed)

File resource definition was missing its fil declarative for each resource method, this has been fixed in 6.x and 7.x