Saving uploaded file in specific location

前端 未结 2 1170
既然无缘
既然无缘 2021-01-05 20:29

I have the following code which handles files upload on the server. But how to save the file to a specific location on the server

import gwtupload.server         


        
2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-05 20:59

    In your java application, you can create file with giving specific path.

    Like; "new File("c:/files/filename)" etc.

    See Java Documents to learn about New IO package's Files class' createFile method.

提交回复
热议问题