dev test baseurl for test
Test Workflow / test (push) Has been cancelled

This commit is contained in:
2026-04-22 01:06:19 +07:00
parent 83ed7c5b01
commit 6dec7838ce
3 changed files with 70 additions and 45 deletions
@@ -22,9 +22,11 @@ import ru.soune.nocopy.repository.UserRepository;
import ru.soune.nocopy.service.file.cloud.CloudStorageService;
import java.io.IOException;
import java.nio.channels.FileChannel;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
@@ -241,8 +243,12 @@ public class FileEntityService {
if (Files.exists(protectedFilePath)) {
Files.delete(protectedFilePath);
}
// SEND ON DISK
try (FileChannel channel = FileChannel.open(protectedFilePath, StandardOpenOption.WRITE)) {
channel.force(true);
}
Files.write(protectedFilePath, data);
// Files.write(protectedFilePath, data);
if (imageResizeService.isImage(extension)) {
imageResizeService.generateSizes(fileEntity, data);