mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-19 02:41:22 +00:00
fix blank filename issue
This commit is contained in:
parent
1c52c18d32
commit
e1ea8d65f8
@ -1765,7 +1765,7 @@ public String finalizeUpload(
|
||||
if (path == null) {
|
||||
// See if we have a string instead
|
||||
if (string != null) {
|
||||
if (filename == null) {
|
||||
if (filename == null || filename.isBlank()) {
|
||||
// Use current time as filename
|
||||
filename = String.format("qortal-%d", NTP.getTime());
|
||||
}
|
||||
@ -1780,7 +1780,7 @@ public String finalizeUpload(
|
||||
}
|
||||
// ... or base64 encoded raw data
|
||||
else if (base64 != null) {
|
||||
if (filename == null) {
|
||||
if (filename == null || filename.isBlank()) {
|
||||
// Use current time as filename
|
||||
filename = String.format("qortal-%d", NTP.getTime());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user