Hello,
I'm using the custom http handler method for AsyncUpload and I need to pass some values to my .ashx handler with query string. When I upload a 2048KB or smaller file everything works fine. But if I try to upload anything more than 2048KB, all query string variables become NULL but the UploadedFile content is fine. My application is setup to upload 2GB file and I have no problem with the standard method. What can possible cause the query string variables to become NULL?
Thanks.
I'm using the custom http handler method for AsyncUpload and I need to pass some values to my .ashx handler with query string. When I upload a 2048KB or smaller file everything works fine. But if I try to upload anything more than 2048KB, all query string variables become NULL but the UploadedFile content is fine. My application is setup to upload 2GB file and I have no problem with the standard method. What can possible cause the query string variables to become NULL?
Thanks.
<telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" MultipleFileSelection="Automatic" OverwriteExistingFiles="True" OnClientFileUploaded="OnFileUploaded" DropZones="#FileContainerWrap" HttpHandlerUrl="~/File/RadUploadHandler.ashx" EnableInlineProgress="False" OnClientFileUploading="OnFileUploading" OnClientFilesSelected="OnFilesSelected" Width="100" OnClientValidationFailed="OnFileValidationFailed">
</telerik:RadAsyncUpload>
<script type="text/javascript">
function OnFileUploading(sender, args) {
var obj = { CustomerID: window.CustomerID };
args.set_queryStringParams(obj);
}
.....
</script>
protected
override
IAsyncUploadResult Process(UploadedFile file, HttpContext context, IAsyncUploadConfiguration configuration,
string
tempFileName)
{
try
{
var CustomerID = context.Request.QueryString[
"CustomerID"
];
......