Browse Source

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

tags/2.0.3
Teknikode 4 years ago
parent
commit
33ded7eb6a

+ 1
- 1
Teknik/Areas/API/Controllers/APIv1Controller.cs View File

@@ -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
{

+ 2
- 2
Teknik/Areas/Help/Views/Help/API/v1/Upload.cshtml View File

@@ -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 @@
<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