How is the URL setting used?

The only documentation I can find on this is the example

 'url' => url('plupload-handle-uploads', array('query' => array('plupload_token' => drupal_get_token('plupload-handle-uploads')))),

But as it is a bit confusing I was wondering how to use it, fx to put the images in a custom folder.

Comments

slashrsm’s picture

Version: 7.x-1.6 » 7.x-1.x-dev
Component: Documentation » Code
Category: Support request » Feature request
Issue tags: +Amsterdam2014

URL configures men callback that is used to handle uploads. You shouldn't change this unless you implement your own upload callback.

You could upload files to custom folder if you implement hook_file_presave() and do it there. Would be nice to have this feature in this module too.