Open myadzel opened 5 years ago
Could you please guide us through your changes?
I just corrected the behavior of the script according to the code that someone had written earlier.
The storage.removeFile
interface assumes the presence of the callback function, it is added. But the deletion method passes an empty function so as not to change the logic of storage.removeFile
.
The value of the value variable in the updateItem
method is always an empty string at deletion.
Method utils.defer(callback)
is called later (by code) in case of deleting a file, so it is redundant and causes an error.
Also added is the deletion of the file before uploading a new one (implementation of the file replacement, which also did not work before).
Fixes issue #4946.