Hi, is there any documentation on how to work with the "$instance->elements"?

I see from swfupload.src.js that we can have type 'drag','icon','cancel','text','textarea','checkbox'.

- what do each do?
- how the setup them up in hook_swfupload() 'init'? Exactly what field/key are available?
- on the server side, where do we receive the value when the user interact with these elements? Like when we double click on a 'text' field and edit the value, how do we get a hold of these values on the server side?

Thanks!

Comments

skilip’s picture

Awesome that you noticed this feature. This feature makes it very flexible to add custom fields. In README.txt you can find a description of all current fields. The data is automatically stored in the nodes file object. You can alter these values, or do some other stuff with it, in hook_swfupload when $op = 'upload_complete' (README.txt ;))

skilip’s picture

Status: Active » Closed (fixed)