Bug 495291 Unbreak Upload File slightly (regression from bug 412822) r=timeless
This commit is contained in:
Родитель
c7800f01c1
Коммит
f701429855
|
@ -2418,7 +2418,7 @@ function uploadFile(fileURL)
|
|||
// parameter since we want the URI to inherit the origin charset
|
||||
// property from targetBaseURI.
|
||||
|
||||
var leafName = fileURL.file.leafName;
|
||||
var leafName = fileURL.QueryInterface(CI.nsIFileURL).file.leafName;
|
||||
|
||||
const IOS = Components.classes["@mozilla.org/network/io-service;1"]
|
||||
.getService(CI.nsIIOService);
|
||||
|
|
Загрузка…
Ссылка в новой задаче