I'm trying to find a way to upload large files to a server thought a web PHP based portal. Since PHP has the max file limitation, I thought of doing the upload with a java applet, using ftp connection, and in the process enabling drag and drop for that. The thing is, I'm still a beginner in java, but I think that if the ftp login data is on the code, using a java decompiler someone could get access to the ftp, and that would be a severe security flaw.
I was trying to do this without using servlets because probably my server doesn't have support them, and then i could use the class in other servers.
Is there a way to do this securely using ftp connection (I'm using Jakarta libs by the way), hidding the ftp login data somewhere else, or something?
Thx in advance