opentype Posted October 20, 2022 Posted October 20, 2022 When I upload an image (like cat.png) it will be stored as something like “cat.png.12345678901234567890.png” on the server. But for non-image files (PDF, DOC …), the file suffix is not repeated at the end. Is there a specific reason for that? Is it for security purposes or something like that? Is there a chance to have the suffix added for file type like PDF as well? My current use case is to show Pages database uploads inline in a PDF viewer, but even after days of dealing with this, I don’t get it to work because the missing suffix is causing the file to be rejected or downloaded instead of shown. Happy to hear if there are any solutions for that.
Recommended Posts