scunliffe
scunliffe

Reputation: 63580

Java Applet to manage file uploads to server

Looking for a descent looking Java File Upload Applet (or even Flash) that fits the following requirements:

  1. Free/cheap (yes looking to use in a commercial web application)
  2. Preferably allow multiple file selection
  3. Ability to create/edit folders on destination server? (within a secure root folder)
  4. Ability to overwrite files in the destination directory?
  5. IE + Firefox support required... Safari, Chrome, etc. a bonus
  6. Ability to "hook" into the flow to apply additional logic

Notes:

Before I'm shut down for "not programming related" I would need to be able to hook into such an applet to apply some additional permission logic etc. I don't want to re-invent the wheel if someone else has made a component that already does what I need.

Upvotes: 1

Views: 1256

Answers (3)

Glenn
Glenn

Reputation: 6573

There at least two requirements:

  1. Applet file uploader These are available, e.g.: http://sourceforge.net/projects/jupload/
  2. Widget to configure destination This is unusual in my experience, but I wrote one once for a Swing app which would be similar for an applet. It was necessary to provide the user a view of the remote file system, enable manipulation of the view, and then upload the changes. Note that there are transactions issues here, so it's not trivial.

Upvotes: 0

Johan Öbrink
Johan Öbrink

Reputation: 1291

The simple answer to your question used to be Flash. Since the release of Flash Player 10 it isn't anymore. Adobe has added a restriction on File upload which only allows a file to be uploaded in the scope of UIA - User Initiated Action. This means that a file upload must be started with a mouse click.

There are some of free file uploaders built in flash available. The only problem is that the queuing is broken by FP10. Adding the files to the pending uploads list is no problem. Starting the upload is no problem either. But when one file upload is done and the next should begin, Flash Player will not allow it if you don't click again which is pretty much useless.

Upvotes: 0

Zack Marrapese
Zack Marrapese

Reputation: 12080

This is relatively easy with Java. Look into Apache Commons Fileupload for the server-side code. For the front-end, there are many examples of flash-based file uploads.

Upvotes: 1

Related Questions