fix broken file uploads

This commit is contained in:
ansuz 2022-08-24 12:38:34 +05:30
parent 6cfce42c58
commit ccd0b580f8
1 changed files with 1 additions and 1 deletions

View File

@ -571,7 +571,7 @@ var reportStatus = function (Env, label, safeKey, err, id, size) {
const completeUpload = function (data, cb) {
if (!data) { return void cb('INVALID_ARGS'); }
if (typeof(data.key) !== 'string') { return void cb("INVALID_KEY"); }
if (typeof(data.safeKey) !== 'string') { return void cb("INVALID_KEY"); }
var owned = data.owned;
var safeKey = Util.escapeKeyCharacters(data.safeKey);
var arg = data.arg;