# plugins.file.writefile and HTTPS

**URL:** <https://forum.servoy.com/t/plugins-file-writefile-and-https/19469>\
**Category:** Classic Servoy\
**Created:** [October 17, 2017, 11:25am UTC](https://forum.servoy.com/t/plugins-file-writefile-and-https/19469 "2017-10-17T11:25:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![steve1376656734](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/steve1376656734/32/4613_2.png) [@steve1376656734](https://forum.servoy.com/u/steve1376656734)\
**Post date:** [October 17, 2017, 11:25am UTC](https://forum.servoy.com/t/plugins-file-writefile-and-https/19469/1 "2017-10-17T11:25:51Z")

</div>

I am running a web client on a secure site (HTTPS). I have a button on a form that calls

```auto
plugins.file.writefile("myFile", documentBytes);

```

Unfortunately, the file does not download in the browser and I get a message in the browser console:

Safari:

```auto
[blocked] The page at about:blank was not allowed to display insecure content from http://mywebsite.com/live/servoy-webclient/resources/servoy/resources.

```

Chrome:

```auto
Mixed Content: The page at 'https://mywebsite.com/live/servoy-webclient/?x=kRCSH0O-3Eypw2v6gAV3bg' was loaded over HTTPS, but requested an insecure resource 'http://mywebsite.com/live/servoy-webclient/resources/servoy/resources'. This request has been blocked; the content must be served over HTTPS.

```

Any idea how I get the file to be served over HTTPS?
