Skip to content

Commit ef79662

Browse files
committed
Pass file object to upload progress callback.
1 parent d51e791 commit ef79662

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openeo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,7 @@ class File extends BaseEntity {
12791279
if (typeof statusCallback === 'function') {
12801280
options.onUploadProgress = (progressEvent) => {
12811281
let percentCompleted = Math.round( (progressEvent.loaded * 100) / progressEvent.total );
1282-
statusCallback(percentCompleted);
1282+
statusCallback(percentCompleted, this);
12831283
};
12841284
}
12851285

0 commit comments

Comments
 (0)