Closed xenoterracide closed 8 years ago
Ran into a problem uploading a tar.gz, in that it downloads as f.txt this will fix that, but creates the problem that everything is then downloaded instead. Not sure if there's a better way to do it.
f.txt
Resource resource = resourceLoader.getResource( root.resolve( filename ).toUri().toString() ); return ResponseEntity.ok() .header( HttpHeaders.CONTENT_DISPOSITION, root.resolve( filename ).toFile().getName() ) .body( resource );
Fixed with #30
Ran into a problem uploading a tar.gz, in that it downloads as
f.txt
this will fix that, but creates the problem that everything is then downloaded instead. Not sure if there's a better way to do it.