 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
kaytown Guest
|
Posted: Wed Feb 25, 2004 4:04 pm Post subject: Make a directory on the remote server on a username who logg |
|
|
Hello,
How can I create a dirctory for an user based on the user who is authenticated at the client?Here goes some detail explanation about what am doing exactly.
At first, the user enters a username and password and if they are are correct to the values against to the stored one's in the table, he is authenticated.Once, the user is authenticated, I show a different pannel.Now, the user can send some files to a server.As of now, I'be hardcoded the directory name on my server program, so what ever files I upload from the client its stored in that directory.NOw, I'd like to do is, say user1 has logged in, when this user tries to send files to a server, at first a directory has to be created on this user name and then inside this user directory, a sub-directoryhas to be created.This sub-directory has to be with a random name and then all the files that are sent from the clients will be stored in the sub-directory.
I've only problem with the directory creation and am bit successful with file transfer.I'm not using the sun ftp package for file transfer, am doing with sockets.
Any help would be highly appreciable.
Thanks for your time
|
|
| Back to top |
|
 |
Andrew Thompson Guest
|
Posted: Wed Feb 25, 2004 4:34 pm Post subject: Re: Make a directory on the remote server on a username who |
|
|
"kaytown" ...
| Quote: | How can I create a dirctory for an user based on the user who is
authenticated at the client?Here goes some detail explanation about what am |
doing exactly.
Detailed but rambling..
Can you write a file on the server now?
If you _can_, you should be able to
make a directory using File.mkDir()..
There _may_ be some arcane server/client
interaction going on here that prevents this,
I have not tried it..
--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|