java - spring uploading files issue -
java - spring uploading files issue - i'm trying utilize multiple files uploadind upload images, , want store 3 copies of images (origin, thumbnail , mini format). problem happens after commentet //save thumbnail . got exception java.lang.illegalstateexception: file has been moved - cannot transferred again. how can prepare it? @requestmapping(value = "/uploadfiles", method = requestmethod.post) public string uploadfiles( @modelattribute("uploadform") donwloadfiles uploadform, @modelattribute("id") int id, modelmap map) throws illegalstateexception, ioexception { properties properties = new properties(); string savedirectory = "/home/desktop/photos/"; list<multipartfile> files = uploadform.getfiles(); list<string> filenames = new arraylist<string>(); if (null != files && files.size() > 0) { (multipartfile multipartfile : ...