Fix case when source element is canvas and direct upload is not used

[#83675946]

+ small cleanup of direct upload handler.