As far as I know, PHP stores all the downloaded files in upload_tmp_dir (or the system grandfather tmp dir if upload_tmp_dir is not installed in the php.ini file).
Then the usual way is to move this file to another location using move_uploaded_file
My question is: is there a way to get the file in a variable? Therefore, it does not need to be stored in the file system at any time?
Reasons: I do not need to clean up the files after that, and I do not need to worry about file system permissions.
source share