How can an applet upload a file to a server?
If the file to be uploaded is on the local file system, the applet will need to be signed or the local policy needs to allow applets access to the filesystem, because otherwise applets can not access the file (for details see HowCanAnAppletReadFilesOnTheLocalFileSystem). A number of libraries that help with file uploads over various protocols are listed in the FileUpload page.