Hermes - Java File Uploader

Hermes
Java File Uploader

 

News


Latest news
More

Testimonial


Applet jest świetny. Dzięki niemu klienci mojego serwisu mogą bezstresowo umieszczać na serwerze nawet duże filmy. Ważne też jest to, że autor jest Polakiem, więc applet też umie "gadać" po polsku, dzięki czemu nie gryzie się z resztą serwisu.

Artur Muszyński at Union Systems 2000
More

Basic package


Contents of the package:
  • Hermes_sdk1.5.jar
  • JavaScript callbacks (link)
  • available config options (link)
  • simple (simple demo with self documented HTML file).
  • dhtml (DHTML Demo with more advanced options).
  • Hermes Config (link)
  • handleUpload.php
More

Quick contact


Please type code visible on image below
Hermes captcha
 




Form sent succesfully. We'll contact you shortly. Thank you!

Hermes add ons

Here you can find additional elements to the Hermes package. They are included in every package.

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
Function Name Value Returned Description

addFile

 

lets you open "add files" dialog and select files that you want to add with preview (calls updateList as last action to update list on JS side)

sendFilesJS

 

sends files to server

updateList

void

Calls JS callback passing to it current files list.

getFileAtNum(int)

Object

retrives info about files at apropriate number

removeListElements

 

Delete currently selected elements from the list

removeFileAtNum(int)

 

Delete element from the list with a given id

Generate applet code
GENERAL
Choose Swing looks (You can specify what Swing UI manager should be used for your Hermes. Remember that some of them might be system dependent, so it's not advisable to set GTK+ manager on Windows systems)
Choose language (If your language is not listed in here and you need it please contact me)
Target URL (This path can be either relative or absolute)
Protocol (Option to choose protocl FTP/FTPS/HTTP/SFTP. Default is http)


Upload size (Limit, in bytes, size of whole upload. This is similar to MAX_FILE_SIZE)
Proxy host (Define proxy host here)
Proxy port (Define proxy port here)
Hermes JAR file location
Search nested directories (This option tells Hermes how deep into nested directories it should search when adding files to the list)
Number of files allowed in the list (This option tells Hermes maximum number of files that can be appended into the list)
By setting this option you can disable extra field which is displayed in lower part of Hermes by which making it smaller. If you handle server response on your own you should go for it
Custom file filters        
 
Generate applet code
JAVASCRIPT CALLBACKS
Onload handler name
Action fired when file list is updated
Action fired when upload progresses
Action fired when upload is finished
Generate applet code
Applet code: Select All

Standalone command:
java -cp ../../jar/Hermes_sdk1.5.jar com.javauploader.hermes.U \
--upload.action="http://javauploader.com/resources/handleUpload.php" \
--upload.protocol=http \
--upload.http.includeHeadersInResponse=false \
--look.lang=en \
--look.noFeedback=false \
--filelist.limitNumberOfFiles=2 \
--dir.maxNestedLevels=1
Generate applet code