Fix downloading/exporting when overwriting file would not truncate
This commit is contained in:
parent
8af786f26d
commit
c80c378398
3 changed files with 15 additions and 3 deletions
|
|
@ -76,7 +76,7 @@ public class SubscriptionsExportService extends BaseImportExportService {
|
|||
|
||||
try {
|
||||
outFile = new StoredFileHelper(this, path, "application/json");
|
||||
outputStream = new SharpOutputStream(outFile.getStream());
|
||||
outputStream = new SharpOutputStream(outFile.openAndTruncateStream());
|
||||
} catch (final IOException e) {
|
||||
handleError(e);
|
||||
return START_NOT_STICKY;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue