Alternate docroot not working on glassfish 4

前端 未结 1 592
渐次进展
渐次进展 2020-12-11 08:36

Im trying to set-up an alternate docroot in order to serve uploaded documents from. I have included the following in my glassfish web xml



        
相关标签:
1条回答
  • 2020-12-11 09:21

    You should use

    <property description="Uploaded Images" name="alternatedocroot_1" value="from=/uploads/* dir=C:\Test\" />
    

    and then drop your images into C:\Test\uploads\

    or, for example, use

    <property description="Uploaded Images" name="alternatedocroot_1" value="from=/uploads/* dir=C:\" />
    

    and then drop your images into C:\uploads\

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