How I can get downloading file with its original name? URL doesn't have name.
URL's format: http://someurl/?RANDOMSYMBOLS
URL returns named file, but all of known me PHP's methods drop to server RENAMED file, with MY name, NOT original.
I using file_put_contents("Tmpfile.zip", fopen("http://someurl/?RANDOMSYMBOLS", 'r'))
, but it drops file as "Tmpfile.zip"
, not with original name (name of file which common user with common browser gets when navigate to url).
I want to know name of that file and drop with that. No problem when URL has format "example.com/?filename"
, but no, it doesn't contain name.