1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00

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

This commit is contained in:
Uncled1023 2016-06-02 15:57:42 -07:00
parent e66d2fcd06
commit 33ded7eb6a
2 changed files with 3 additions and 3 deletions

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
{

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.