| Parameter Name |
Type |
Default |
Description |
|
filelist.limitNumberOfFiles
|
int
|
-1 (unlimited)
|
Limits number of files that can be added to the
list at once thus limiting number of files
that can be uploaded at once.
|
|
dir.maxNestedLevels
|
int
|
1
|
This parameter lets you
control if multiple nested directories should be checked
recursively and their contents added to the files list window.
Default value 1 means that only files will be added
|
|
dir.appendDirNames
|
bool
|
false
|
Thanks to this parameter you
can tell Hermes whether it should append directory names in the
list of selected files.
|
|
filter.allowedExtensions / filter[num].allowedExtensions
|
String
|
-
|
This parameter lets you enable file filtering that should be displayed in "Choose Files" dialog box. It has to be comma delimited list of files eg. "gif,png,jpg"
|
|
filter.name / filter[num].name
|
String
|
Custom filter
|
This paramter lets you decide how should be your filter displayed in "Choose files" dialog box.
|
|
filter.hideAllFilesFilter
|
bool
|
false
|
Using this paramter you can turn off default functionality of "Choose files" dialog box and prevent it from showing default filter, which displays all files.
|
|
look
|
String
|
System Dependent
|
Defines which type of look
should be used for buttons and dropdowns
|
|
look.noFeedback
|
boolean
|
|
Lets you hide feeback field, which makes Hermes more compact.
Use this when you don't need to display server's response.
|
|
look.lang
|
String
|
pl
|
2 letter country code that's
used for internationalization
|
|
look.noAlerts
|
boolean
|
false
|
This value lets you hide information about successfull/errerenus upload.
This is very useful when using DHTML interface, when you want to display your own messages.
|
upload.http.includ eHeadersInResponse
|
bool
|
false
|
Any other value than null
will enable you to see raw server response.
Works only with HTTP uploads.
|
|
upload.http.sendFilesAsArray
|
bool
|
false
|
This will cause files sent as array to the server.
Works only with HTTP uploads.
|
|
upload.http.requestPerFile
|
bool
|
false
|
Lets you decide if each file should be sent in separate request.
|
|
upload.http.forms
|
comma separated string
|
|
By using this param you can instruct Hermes to read values from HTML Forms
present on the same page and append their values into the request, eg. form1,form2,form3
|
|
upload.action
|
String
|
-
|
it's the same as action
attribute of FORM tag in HTML - declares to what address should
files go to (this should be full adres including protocole eg.
http://javauploader.com/handleUpload.php)
|
|
upload.protocol
|
String
|
http
|
Decide what type of upload you want to use ftp/http available.
|
|
upload.maxSize
|
int
|
-1
|
With this param you can decide if you want to limit size of the whole upload. When setting it to a non-zero value
the user will see a progress bar that will allow him to visualise space used.
|
|
upload.sftp.pathRelative
|
boolean
|
true
|
When connecting via SFTP you land in eg. /home/hermes you don't need to specify it in the
action url, this flag can do the trick instead. It will append "." in front of your path so you can
set ftp://javauploader.com/upload which will become ./upload.
|
|
proxy.host
|
String
|
|
If you need to use proxy use this param to inform Hermes about it.
|
|
proxy.port
|
String
|
|
Additional param for defining port of your proxy.
|
|
js.onuploadprogress
|
valid JS callback
|
-
|
This parameter can be used
to track progress of files outside Hermes. It has to be a valid
JavaScript callback (function) with 3 parameters:
- progress of all files
- progress of currently
uploaded file
- number of currently
processed file (starting with 0 as first file)
|
|
js.onuploadfinished
|
valid JS callback
|
-
|
This parameter can be used
to inform client about finished upload. It has to be a valid
JavaScript callback (function) with 1 parameter - response
string. It can be used to:
- redirect to another page
- save upload output into
cookie
- display output info
|
|
js.onload
|
valid JS callback
|
-
|
This param lets you define a JS callback that will be fired when applet is loaded. So if you decide to use DHTML UI, use this setting to initiate your page.
|
|
js.filelist.onchange
|
valid JS callback
|
-
|
Due to this parameter it's
possible to pass name of JavaScript callback that will be used
when files are added /deleted
|