Do you save the file as Compiled file or original file when you save you XLSX/PDF-file into the Container field?
PDF: save records as PDF - XLSX: save records as Excel
(from a specific layout/found set) - always done from FM native and imported into container (open storage, external)
Export from FM15 native is correct.
Export from WebDirect causes "corrupt" files (????)
Any browser (Safari, Chrome, Firefox on Macintosh); Edge, IE, Firefox, Chrome on Windows 10) - so not browser specific, nor OS specific.
Does not make any difference.
Filesizes between both exports differ largely:
PDF exported from container via FM15 = 35 KB
Same PDF exported from container via WebDirect = 10 KB
XLSX exported from container via FM15 = 4 KB
Same XLSX exported from container via WebDirect = 10 KB
On Macintosh: pushing space bar to view contents of file from Finder:
those exported from within FileMaker show contents/preview
those exported from WebDirect only show generic icon
That sounds you are compressing your files. Have you actually checked to Not compress your files or are you just assuming?
Here's the code from the script that exports XLSX and imports it into a container:
Go to Layout [ “Status Open Jobs” (JOBS) ]
Sort Records [ Restore ; With dialog: Off ]
Set Variable [ $XLSXnaam ; Value: Get ( TemporaryPath ) & "Status Active Jobs - " & Substitute ( GetAsText ( Get ( CurrentDate ) ) ; "/" ; "-" ) & ".xlsx" ]
Save Records as Excel [ Restore ; With dialog: Off ; “$XLSXnaam” ; Records being browsed ]
Go to Layout [ “RESULT” (RESULT) ]
Insert File [ Never compress ; RESULT::Container ; “$XLSXnaam” ]
Set Field [ RESULT::Account ; Get(AccountName) ]
Set Field [ RESULT::Date_Time ; Get(CurrentHostTimestamp) ]