[semi-OT] PDF on the fly
matthias_livecode_150811 at m-r-d.de
matthias_livecode_150811 at m-r-d.de
Thu Sep 15 07:07:04 EDT 2022
That is interesting. I tried here with content-length on on-rev and it works here with Version 15.6 (17613.3.9.1.5) of Safari.
At least you've found a solution...
> Am 15.09.2022 um 11:36 schrieb jbv via use-livecode <use-livecode at lists.runrev.com>:
>
> I am using Safari 15.6 (15613.3.9.1.7, 15613)
>
> But I finally found the origin of the problem :
> put header "Content-Length: " & number of chars of myPDF
>
> After removing that line from the header, files download and
> display fine in Safari, as in other browsers.
> So far I have no rational explanation though.
>
> Best,
> jbv
>
> Le 2022-09-14 17:00, matthias rebbe via use-livecode a écrit :
>> I just tested on quartz.on-rev.com <http://quartz.on-rev.com/> with LC
>> Server 9.6.0.
>> I've created a textfile with a size of 1mb.
>> tested with this script and it worked. I even tested with put header
>> instead of put new header.
>> <?lc
>> put header "Content-Type: application/text"
>> put new header "Content-Disposition: attachment; FileName=" & "justsomeText.txt"
>> put URL("binfile:" & "justsomeText.txt")
>> ?>
>> Which version of Safari do you have?
>>> Am 14.09.2022 um 22:44 schrieb jbv via use-livecode <use-livecode at lists.runrev.com>:
>>> Hi guys,
>>> Thank you for your answers.
>>> No matter what I try, the problem remains the same on Safari.
>>> My LC script runs on my on-rev account, and it uses LC 9.6.
>>> Could this really be the problem ?
>>> Best,
>>> jbv
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list