Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jul 17th, 2018
84
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.20 KB
| None
|
0
0
raw
download
clone
embed
print
report
[HttpGet]
[Authorize("FileAccess")]
public FileContentResult GetFile(Guid fileId)
{
if (!this.UserHasNoAccessToFile(fileId))
return Unauthorized(); // does not work
return File(...)
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
💲 G2A.com Free Gift Card Guide Mar 2024 💲
GetText | 13 min ago | 0.52 KB
scatter_title_not_title
HTML | 42 min ago | 7.58 KB
Roblox FPS displayer and checker
Lua | 46 min ago | 1.96 KB
DialogueScript (LoaclScript ) (Update)
CSS | 46 min ago | 0.60 KB
vip
Lua | 58 min ago | 21.75 KB
*Spiral Alphabet Pattern* Solution from @Codi...
Python | 1 hour ago | 1.53 KB
PizzaBox (Script)
CSS | 1 hour ago | 0.53 KB
Untitled
HTML | 1 hour ago | 0.26 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!