WebSphere Application Server & Liberty

 View Only

Multiple file upload with Jakarta Restful API 3.1 and Liberty 24.0.0.3

  • 1.  Multiple file upload with Jakarta Restful API 3.1 and Liberty 24.0.0.3

    Posted 25 days ago

    Hi All, With Liberty version 23.0.0.3 we are using below 2 classes for mutiple file uploads thats with Jax-RS 3.0

    import com.ibm.websphere.jaxrs20.multipart.IAttachment;

    import com.ibm.websphere.jaxrs20.multipart.IMultipartBody;

    With Liberty version 24.0.0.3 and Jakarta RESTful web services 3.1 the above are depreciated.

    I followed below link to do multiple file uploads:

    https://jakarta.ee/specifications/restful-ws/3.1/jakarta-restful-ws-spec-3.1.html

    But its not working for me. As we are passing all files along with other parameter as part of form body and i am submitting the form using Ajax request.

    IMultipartBody will fetch me the entire form body in the REST method so that I can extract all the data I needed. I am unable to find anything similar to this in Liberty

    version 24.0.0.3 or Jakarta RES 3.1. EntityPart is working for single file by passing as Form parameters. in my case i have so many parameters.

    Please help...

    Thanks

    Kiran



    ------------------------------
    KIRAN MALLI
    ------------------------------