开发者

File uploading using sdk3?

开发者 https://www.devze.com 2022-12-29 01:52 出处:网络
How do I upload files using sd开发者_如何学Ck3? I\'m developing my project using flex and spring

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

精彩评论

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

关注公众号