posted 20 years ago
I am able to upload to the root directory, but when i specify subdirectory, i get an error saying invalid directory.
This is what i am doing
MultipartRequest multi = new MultipartRequest(req, ".\\myserver\\public_html", 1024*1024);
The following works fine.
MultipartRequest multi =
new MultipartRequest(req, ".", 1024*1024);
Also is there way that i can get the filename first even before i do the actual upload as i want to check for the type of file, want to limit for just 3 type of files(.txt, .doc, .html). And also is there a way that i can do the virus check before its actually uploaded.
Could anyone please let me know.
Thanks,
Appreciate your help and anticipating for your reply!