From 70f93092233dc5423e72301bea42920381d8b327 Mon Sep 17 00:00:00 2001 From: Nick Turrietta Date: Fri, 1 Jul 2016 15:34:56 -0700 Subject: [PATCH] AllowInsecure option added to uploadfromuri example The AllowInsecure option is now required when uploading from a non-secure URI. --- docs/uploading.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/uploading.md b/docs/uploading.md index 66c0df4..8163c17 100644 --- a/docs/uploading.md +++ b/docs/uploading.md @@ -37,6 +37,7 @@ Uploading from a URL is slightly different in that you don't need to use the `up ```php $options = [ + 'AllowInsecure' => true, 'Uri' => 'http://example.com/img/image.png', 'Cookie' => 'foo', 'Title' => 'Example.com Photo', @@ -48,7 +49,7 @@ $options = [ $response = $client->post('album/r4nD0m!uploadfromuri', $options); ``` -`Uri` (the source of the image) and `Cookie` (a string to send as the value of a Cookie header when fetching the source URI) are required options. +`Uri` (the source of the image) and `Cookie` (a string to send as the value of a Cookie header when fetching the source URI) are required options. `AllowInsecure` is required and must be set to _true_ if the `Uri` is insecure. # Replacing Images