1
1
Fork 0
mirror of https://github.com/boxgaming/qbjs.git synced 2024-05-12 08:00:12 +00:00

Added fix for UploadFile method when root path "/" is specified as the destination.

This commit is contained in:
boxgaming 2024-01-08 12:07:31 -06:00
parent 8c6aefc403
commit 3e40944c27

View file

@ -66,7 +66,11 @@ Sub UploadFile(destpath As String, filter As String, fnCallback)
$If Javascript Then
var vfs = QB.vfs();
var parentDir = null;
if (destpath == undefined || destpath == "") {
if (destpath == "/") {
parentDir = QB.vfs().rootDirectory();
destpath = "";
}
else if (destpath == undefined || destpath == "") {
parentDir = QB.vfsCwd();
}
else {