mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2025-06-09 05:48:20 +00:00
WIP
This commit is contained in:
parent
d5371b307d
commit
ca657340c0
@ -193,6 +193,9 @@ public class DbAdminRepository {
|
|||||||
|
|
||||||
files.keySet().forEach(f -> {
|
files.keySet().forEach(f -> {
|
||||||
try {
|
try {
|
||||||
|
// The file parameter gets sent even if empty, so it's needed
|
||||||
|
// to check if the file has actual content, to avoid storing an empty file
|
||||||
|
if (files.get(f).getSize() > 0)
|
||||||
allValues.put(f, files.get(f).getBytes());
|
allValues.put(f, files.get(f).getBytes());
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new DbAdminException(e);
|
throw new DbAdminException(e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user