Closed (fixed)
Project:
SWFUpload
Version:
6.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Jan 2009 at 19:31 UTC
Updated:
3 May 2010 at 20:55 UTC
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
Comment #1
skilip commentedAwesome 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 ;))
Comment #2
skilip commented