Some optimiziations for file upload code.
parent
e369258c30
commit
100f6f45f8
|
|
@ -32,6 +32,7 @@ import org.librecms.contentsection.AssetRepository;
|
|||
import org.librecms.ui.contentsections.AssetPermissionsChecker;
|
||||
import org.librecms.ui.contentsections.ContentSectionNotFoundException;
|
||||
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
|
@ -378,10 +379,6 @@ public class FileAssetEditStep extends AbstractMvcAssetEditStep {
|
|||
}
|
||||
}
|
||||
|
||||
// try ( InputStream fileInputStream = Files.newInputStream(
|
||||
// tmpFilePath
|
||||
// )) {
|
||||
|
||||
final Blob data = BlobProxy.generateProxy(
|
||||
Files.newInputStream(tmpFilePath), -1
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue