It work well for let’s say images, pdf or so but if the file is something that cannot be read from the browser, like a psd for example, it open the download window and i seem to download the hash, not the file.
I guess this is not the proper way to download a file? or it is not possible via https link ?
You are probably downloading the file which is renamed to the hash because that’s all that is known about it. If you wrap it in a folder (there’s an option for that), you should be able to keep the filename and reference it like <hash>/filename and the download will keep the filename.
Just putting the path on the file name doesn’t do it. The add itself must be either the directory path only (in which case I believe all files within the directory tree will be added) or the “wrap-with-directory” flag must be specified as documented at https://docs.ipfs.io/reference/http/api/#api-v0-add. Otherwise I believe the file will only have a hash to the content and not a hash to a file structure that carries the name for future reference prefixed by the hash.