In case you found this thread through google - don’t panic, i found a solution even though it doesn’t prompt the user to save the file: it just saves the file in a pre-defined directory (in this case, the global images directory), not sure how good it is, for more info visit this thread (where more folks will surely address how correct the solution is): How to download stuff now that transfer-file is deprecated?