This is a migrated thread and some comments may be shown as answers.

File not moved to target on postback

3 Answers 37 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 28 Jan 2014, 05:25 PM
I build the simplest of examples and it works fine on my local machine.  The file is uploaded to the default temporary location and on the postback it is moved to the target folder (c:\temp).  When I move the code to a server in our farm, the file is uploaded to the temporary location, but on the postback, it doesn't move to the target folder (c:\temp).  I have tried multiple IIS servers and have the same results.  It only works locally.  What am I doing wrong?

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
<Scripts>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
</Scripts>
</telerik:RadScriptManager>
<script type="text/javascript">
//Put your JavaScript code here.
</script>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

</telerik:RadAjaxManager>

<div>

<telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" AllowedFileExtensions="iso,avi,xlsx,xls,docx,png,jpg" MaxFileSize="2000000000" TargetFolder="c:\temp">
</telerik:RadAsyncUpload>
<telerik:RadButton ID="RadButton1" runat="server" Text="Finish">
</telerik:RadButton>
<br />

</div>
</form>
</body>
</html>

3 Answers, 1 is accepted

Sort by
0
Brian
Top achievements
Rank 1
answered on 28 Jan 2014, 08:48 PM
more info:  
    If I attempt to leverage the OnClientFileUploadFailed event handler, the RadAsyncUpload control disappears from the web page.  It doesn't matter what is in the javascript either.  I can leave it empty and it still disappears.  So I can't get to the error message, if there is one.   There are no event log entries from the failure.  No errors on the page.  nothing to denote there was an issue, the files just fail to move to the target. 

I downloaded the trial version yesterday to test the control to see if it would do what we needed.  We had success and the files moved to the target folder, even on the server.  We were prompted to download an update today and it has been broken ever since.  That might be coincidental, however.  Not sure. 
0
Brian
Top achievements
Rank 1
answered on 29 Jan 2014, 05:00 PM
Is there a way to lengthen the evaluation period?  It doesn't look like I will get a response before it expires. 
0
Hristo Valyavicharski
Telerik team
answered on 31 Jan 2014, 03:56 PM
Hi Brian,

Everything in your code looks normal. Please make sure that your application has write permissions to this
folder: c:\temp

If it doesn't help please attach a fiddler log.

Regards,
Hristo Valyavicharski
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
Tags
AsyncUpload
Asked by
Brian
Top achievements
Rank 1
Answers by
Brian
Top achievements
Rank 1
Hristo Valyavicharski
Telerik team
Share this question
or