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:
parent
8c6aefc403
commit
3e40944c27
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue