mirror of
https://git.teknik.io/Teknikode/Teknik.git
synced 2023-08-02 14:16:22 +02:00
Re-fixed url not being generated correctly for API upload
This commit is contained in:
parent
7806555a07
commit
3e9afafd09
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user