Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Coscine
backend
apis
BlobApi
Commits
20b8f1cf
Commit
20b8f1cf
authored
Mar 03, 2021
by
Marcel Nellesen
Browse files
Small fix
parent
067fae85
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/Blob/Controllers/BlobController.cs
View file @
20b8f1cf
...
...
@@ -143,8 +143,8 @@ namespace Coscine.Api.Blob.Controllers
public
async
Task
<
IActionResult
>
GetFile
(
string
resourceId
,
string
path
)
{
var
user
=
_authenticator
.
GetUser
();
var
checkPath
=
CheckPath
(
path
);
path
=
$"/
{
path
}
"
;
var
checkPath
=
CheckPath
(
path
);
if
(
checkPath
!=
null
)
{
return
checkPath
;
...
...
@@ -190,8 +190,8 @@ namespace Coscine.Api.Blob.Controllers
public
async
Task
<
IActionResult
>
UploadFile
(
string
resourceId
,
string
path
)
{
var
user
=
_authenticator
.
GetUser
();
var
checkPath
=
CheckPath
(
path
);
path
=
$"/
{
path
}
"
;
var
checkPath
=
CheckPath
(
path
);
if
(
checkPath
!=
null
)
{
return
checkPath
;
...
...
@@ -251,8 +251,8 @@ namespace Coscine.Api.Blob.Controllers
public
async
Task
<
IActionResult
>
DeleteFile
(
string
resourceId
,
string
path
)
{
var
user
=
_authenticator
.
GetUser
();
var
checkPath
=
CheckPath
(
path
);
path
=
$"/
{
path
}
"
;
var
checkPath
=
CheckPath
(
path
);
if
(
checkPath
!=
null
)
{
return
checkPath
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment