Link to home
Start Free TrialLog in
Avatar of cezarF
cezarFFlag for Australia

asked on

Supressing "File Download" dialog box

Hi Experts!

I have a .tif file attached in a document.  I want to download it to the "windows\temp" folder of the web user's machine.  Is it possible to supress the "file download" dialog box to automatically download the file without user intervention?

regards
Avatar of zvonko
zvonko

Yes, it is possible.

Open the Form for such documents containing tiff attachments in Designer.
Go to PostOpen event of this form and switch it from LotusScript to Formula.
Put this formula into PostOpen event of this form:
attachment:=@Subset(@AttachmentNames;-1);
extention:=@LowerCase(@Right(attachment;"."));
@If(extention="tif";@Command([EditDetach];attachment;"C:\\temp\\"+attachment);"")

Tell me how it works for you.

So long,
zvonko

Sorry, I overred half of your question :-)

No, absolutely not, never. It is never possible to place a file anywhere on web user's machine.

Sorry.

Here a short explanation why this download is possible on Notes client but never possible on web client.

On Notes client there is an ECL, ExecutionControlList allowing or prohibiting access to local disk drive. This ECL allows or prohibits every design signer to do special things.

On web client there is an option to sign scripts but it is so complicated that it is seldom used. And even with signing there are to many open doors for misuse so does the web client SandBox model disallow all actions which could be dangerous.

I suppose you did know all this but hopped to get a trick here to circumvent this barrier :)

Avatar of cezarF

ASKER

Thanks for your comments.  I managed to do it using an activeX.  Regards
It would be nice from you asking EE Community Support to refund your points and close this question together with your working example :)

The link to post such a refund request is here:
https://www.experts-exchange.com/commspt

Cheers,
zvonko

Hello cezarF,

can you provide here this example how do you this dedicated download without user intervention?

Avatar of cezarF

ASKER

sure... actually i need the file to be downloaded in an activeX application. in my activeX application i used the "URLDownloadToFile" API of the "URLmon".  this wil work only in IE.
I used this function in LotusScript in Notes client, but what would be the code in JavaScript and without user intervention?

Avatar of cezarF

ASKER

i did not use java script. my activeX is coded in VB6.  :)
Hello cezarF,

so as conclusion we can say, suppressing download dialog is possible when user accepted once your ActiveX module, right?

Please do not let this question abandoned. Either let it close by CommunitySupport and reward your points, or give me this one with an A+ plus only for being a kind companion :-)

Thanks,
zvonko


Avatar of Zvonko
cezarF,
No comment has been added to this question in more than 595 days, so it is now classified as abandoned..
I will leave the following recommendation for this question in the Cleanup topic area:

RECOMMENDATION: Accept cezarF's answer http:#7147933 and Refund

Any objections should be posted here in the next  4  days. After that time, the question will be closed.

Thanks,
Zvonko
EE Cleanup Volunteer
ASKER CERTIFIED SOLUTION
Avatar of Netminder
Netminder

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial