From 1699dc5f71aacde9c2ddab47ac17434e2287c320 Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Thu, 28 Oct 2010 20:58:48 +0000 Subject: [PATCH] Improved Upload page experience --- Builder/IISMainHandler/build.txt | 2 +- IISMainHandler/handlers/response/UploadHandler.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Builder/IISMainHandler/build.txt b/Builder/IISMainHandler/build.txt index 249240a..c59f88b 100644 --- a/Builder/IISMainHandler/build.txt +++ b/Builder/IISMainHandler/build.txt @@ -1 +1 @@ -1761 \ No newline at end of file +1765 \ No newline at end of file diff --git a/IISMainHandler/handlers/response/UploadHandler.cs b/IISMainHandler/handlers/response/UploadHandler.cs index 2ab9500..d22f4ad 100644 --- a/IISMainHandler/handlers/response/UploadHandler.cs +++ b/IISMainHandler/handlers/response/UploadHandler.cs @@ -21,7 +21,8 @@ namespace FLocal.IISHandler.handlers.response { protected override string getRedirectUrl(WebContext context) { Uri referer = context.httprequest.UrlReferrer; if(referer == null || referer.Host != context.httprequest.Url.Host) { - throw new AccessDeniedException(); + //throw new AccessDeniedException(); + return new Common.URL.upload.Info(this.url.upload.id.ToString(), null).canonical; } string mime = Util.getMimeByExtension(this.url.upload.extension);