Any documentationon how to use "$instance->elements"?
mattyoung - January 27, 2009 - 19:31
| Project: | SWFUpload |
| Version: | 6.x-1.x-dev |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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!

#1
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 ;))