Safari on iOS will always indicate the name of the downloaded file image.jpeg, presumably for security / privacy purposes. You need to create your own name for the files, which is a good idea in general for downloaded files: you never want to trust the client too much.
If you configure more than just Safari on iOS, you still have to handle this case, because it’s reasonable for people to be able to upload multiple files with the same name but originally located in different directories.
source
share