Browse Source

Changed default values for encrypt and saveKey for API to true.

master
Teknikode 6 years ago
parent
commit
33ded7eb6a
  1. 2
      Teknik/Areas/API/Controllers/APIv1Controller.cs
  2. 4
      Teknik/Areas/Help/Views/Help/API/v1/Upload.cshtml

2
Teknik/Areas/API/Controllers/APIv1Controller.cs

@ -30,7 +30,7 @@ namespace Teknik.Areas.API.Controllers @@ -30,7 +30,7 @@ namespace Teknik.Areas.API.Controllers
[HttpPost]
[AllowAnonymous]
[TrackPageView]
public ActionResult Upload(HttpPostedFileWrapper file, string contentType = null, bool encrypt = false, bool saveKey = false, string key = null, int keySize = 0, string iv = null, int blockSize = 0, bool genDeletionKey = false, bool doNotTrack = false)
public ActionResult Upload(HttpPostedFileWrapper file, string contentType = null, bool encrypt = true, bool saveKey = true, string key = null, int keySize = 0, string iv = null, int blockSize = 0, bool genDeletionKey = false, bool doNotTrack = false)
{
try
{

4
Teknik/Areas/Help/Views/Help/API/v1/Upload.cshtml

@ -57,7 +57,7 @@ @@ -57,7 +57,7 @@
<code>bool</code>
</td>
<td>
<var>false</var>
<var>true</var>
</td>
<td>
If you want the file to be encrypted server side. This will regenerate the key and/or iv if none are passed in.
@ -71,7 +71,7 @@ @@ -71,7 +71,7 @@
<code>bool</code>
</td>
<td>
<var>false</var>
<var>true</var>
</td>
<td>
Saves the passed in or generated key to the server. This will make it so that on download, the file will decrypt server side.

Loading…
Cancel
Save