开发者

File uploading using sdk3?

How do I upload files using sd开发者_如何学Ck3? I'm developing my project using flex and spring iam using the jboss server


On the flex side you will have to create a FileReference object and use the upload method to upload the file. The upload method requires a Request object which is the URL of your Spring controller that is going to handle your upload.

On the server side, you can have a CommonsMultipartResolver and since you will not be using spring beans.. you will have to get the file from request using something like this:

 MultipartActionRequest multipartRequest = (MultipartActionRequest) request;
 MultipartFile multipartFile = multipartRequest.getFile("file");

Hope this helps,
Regards,
Abdel Raoof

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜