My requirement is to upload a file from client(browser) to my Application Server (In any directory of Application Server machine like C:\ or D:\ etc..). But before that I want to check whether the file has any data or no ?
But on clients machine I cant do File operation using java.io package. Can anyone tell me how can I read file temporary without uploading it on server and check if file has any data so that I can give message to client like File has no data.
Thanks in advance.
posted 8 years ago
Sounds like a suspicious activity.
You should not attempt to read files on client machines from server code.
Have user upload file and if it is empty, then send message to client about the empty file. This is a better option, in my opinion. [ October 06, 2008: Message edited by: James Clark ]