Explorar el Código

Re-fixed url not being generated correctly for API upload

tags/2.0.2
Teknikode hace 6 años
padre
commit
3e9afafd09
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      Teknik/Areas/API/Controllers/APIv1Controller.cs

+ 1
- 1
Teknik/Areas/API/Controllers/APIv1Controller.cs Ver fichero

@@ -93,7 +93,7 @@ namespace Teknik.Areas.API.Controllers
string fullUrl = Url.SubRouteUrl("upload", "Upload.Download", new { file = upload.Url });
var returnData = new
{
url = (saveKey && !string.IsNullOrEmpty(key)) ? fullUrl : fullUrl + "#" + key,
url = (saveKey || string.IsNullOrEmpty(key)) ? fullUrl : fullUrl + "#" + key,
fileName = upload.Url,
contentType = contentType,
contentLength = contentLength,

Cargando…
Cancelar
Guardar