diff --git a/Site/Automation/UITests.aspx b/Site/Automation/UITests.aspx new file mode 100644 index 00000000..781f7ec8 --- /dev/null +++ b/Site/Automation/UITests.aspx @@ -0,0 +1 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UITests.aspx.cs" Inherits="Swarmops.Frontend.Automation.UITests" %> \ No newline at end of file diff --git a/Site/Automation/UITests.aspx.cs b/Site/Automation/UITests.aspx.cs new file mode 100644 index 00000000..b046767c --- /dev/null +++ b/Site/Automation/UITests.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace Swarmops.Frontend.Automation +{ + public partial class UITests : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/Site/Automation/UITests.aspx.designer.cs b/Site/Automation/UITests.aspx.designer.cs new file mode 100644 index 00000000..9bf38a00 --- /dev/null +++ b/Site/Automation/UITests.aspx.designer.cs @@ -0,0 +1,15 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Swarmops.Frontend.Automation { + + + public partial class UITests { + } +} diff --git a/Site/Automation/UploadFileHandler.ashx b/Site/Automation/UploadFileHandler.ashx index d5693ff7..0d2d791f 100644 --- a/Site/Automation/UploadFileHandler.ashx +++ b/Site/Automation/UploadFileHandler.ashx @@ -119,9 +119,12 @@ namespace Swarmops.Frontend.Automation Stream inputStream = context.Request.Files[0].InputStream; string fullName = Document.StorageRoot + Path.GetFileName(fileName); - throw new NotImplementedException( + Exception exception = new NotImplementedException( "We should never get to partial upload. If we do, something is very very unexpected and this needs to be implemented."); + SupportFunctions.LogException("UploadFileHandler-Partial", exception); + throw exception; + //using (var fs = new FileStream(fullName, FileMode.Append, FileAccess.Write)) //{ // var buffer = new byte[1024]; @@ -149,6 +152,8 @@ namespace Swarmops.Frontend.Automation for (int i = 0; i < context.Request.Files.Count; i++) { + try + { HttpPostedFile file = context.Request.Files[i]; string fullName = Path.GetFileName(file.FileName); string clientFileName = string.Empty; @@ -335,6 +340,15 @@ namespace Swarmops.Frontend.Automation statuses.Add(new FilesStatus(fullName, file.ContentLength)); } + + } + catch (Exception loggableException) + { + SupportFunctions.LogException("UploadFileHandler", loggableException); + + throw loggableException; + } + } if (pdfsForConversion.Count > 0)