Presently we are using cos.jar (MultiPartRequest) for file upload in our application,but it seems we have to migrate to java commons api for uploads .Can someone guide me on an alternative to MultipartRequest for getting uploads from sevlet http request in commons.
Also I tried the docs avail in Java commons fileupload site but didnt find a way out on how to encapsulate the request object as we did in Multipart request eg :requestObj = new MultipartRequest(request, appContext.getRealUploadDir(), Integer.MAX_VALUE);
FileUpload works differently than COS, so I wouldn't expect to find class-by-class replacements. Have you gotten FileUpload to work at all? Its User Guide has a full example of how to do that, as does this article.
posted 12 years ago
thanks for your help ...
though had read the article in the link but was searching to go on similar lines as cos ...thinking of creating a multiparserequest class similar to cos using the commoms api ...