Downloading on Forms
Mike Matthews - Omnis
omnis at lineal.co.uk
Sat Mar 18 10:00:17 UTC 2023
Hello Das,
Ok, so patience was needed :)
What was the original value? What value did you end up using? How fast/slow is your internet access?
Thanks
Mike Matthews
Lineal Software Solutions
Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, Devon, EX31 1EU<x-apple-data-detectors://1/1>
omnis at lineal.co.uk<mailto:mike.matthews at lineal.co.uk>
www.lineal.co.uk<http://www.lineal.co.uk/>
www.sqlworks.co.uk<http://www.sqlworks.co/>
On 17 Mar 2023, at 18:15, Das Goravani <goravanis at gmail.com<mailto:goravanis at gmail.com>> wrote:
Caution: This is a message which has originated from outside the organisation. Ensure the sender is trusted and the content is safe before opening links or attachments.
I just looked it up and .crdownload means the download is in progress.
But they never finish.
Maybe it refers to the original file creation not being complete.
I want to use $pdfcomplete to make sure of this but it’s not working in my pdf printing object class
So I went with a repeat loop that has sleep(500) in it, and a max of 10 iterations, testing if file is complete
I am using $settemp to create the file, so I don’t know if that works with "test if file exists"
Meaning I don’t know if those as files appear already created even though they are still being filled up with PDF
The PDF I’m testing with shouldn’t take long to compose
On Mar 17, 2023, at 1:59 PM, Das Goravani <goravanis at gmail.com<mailto:goravanis at gmail.com>> wrote:
I am using JSFile, the Forms object, to download files.
I am using it exactly the way they do it in the demo.
I am on Windows 10, Omnis Studio 10.22
I am getting a file in my downloads folder each time I do it, but the files are named like:
Unconfirmed 48645.crdownload
Unconfirmed 29538.crdownload
Etc
What does this mean? How can I fix it?
Does it have to do with: In the field JSMediaType I am putting 'application/PDF'
Is that a Mac thing I’m trying to do on Windows?
What is the windows way of saying the Media is a PDF?
Can you think of any other reasons I might be getting these strange files in my downloads folder?
_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list