Improved Upload page experience

main
Inga 🏳‍🌈 14 years ago
parent 575ce0aa59
commit 1699dc5f71
  1. 2
      Builder/IISMainHandler/build.txt
  2. 3
      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);

Loading…
Cancel
Save