Upload video in struts 2

前端 未结 1 1702
迷失自我
迷失自我 2021-01-25 14:08

I want to upload video in my struts 2 web application. For this I am using File upload interceptor . My problem is that, I am able to upload image and text fi

相关标签:
1条回答
  • 2021-01-25 15:09

    The maximumSize is per-file, configured globally OR per-Action

    <interceptor-ref name="fileUpload">
        <param name="maximumSize">10485760</param>
    </interceptor-ref>
    

    The default is 2097152 bytes (2 MB)

    The multipart.maxSize

    <constant name="struts.multipart.maxSize" value="100485760" />
    

    is per-request, configured only globally;

    The default is 2097152 bytes (2 MB) (source on File Upload Advanced Configuration)


    Mixing this two parameters allows you to upload N files of maximumSize MB each one in a single request, if they do not break the struts.multipart.maxSize MB defined limit.

    More info here

    0 讨论(0)
提交回复
热议问题