JumpLoader
Java File Upload Applet

Documentation

Custom attributes

(since 1.2)

Custom attributes is an extension, which allows to assign metadata to an object (IUploader or IUploadFile in our case). The aim of custom attributes is not dictated by applet, but this should help implement kind of business logic outside from applet (using JavaScript or more advanced technology).

For example, using custom attributes it is possible to let user enter custom description for each file outside of applet, which will be send to server along with file data.

Attributes could be accessed (read and written) using IAttributeSet interface, which is a container for IAttribute objects.

Each attribute has properties:

  • name — the attribute name (immutable), this is unique for current IAttributeSet.
  • value — attribute value (string)
  • sendToServer — shows whether this attribute should be send (using POST) to server

IUploader attributes send to server in each request issued by uploader. IUploadFile attributes send with each partition request and override IUploader attributes, if attribute name collision occurs.

See interfaces for details about custom attributes and attributes demo for sample usage scenario.

advertising WebFM — easy and efficient web file manager.