I use dhtmlxVault in C# asp.net enviroment on windows XP. I call setFormField to transfer data for using in uploadhandler.ashx. I use Request.Form to get form field.
In this way, when the uploaded file size is less than 48k, it works rightly. But if the uploaded file size is bigger than 48k, it only transfer 48k content to server and the loading icon is always displaying.
can anyone please help me with a solution?
Thank you!
/********************* my example code as follows:************************************/
//************** In uploadhander.ashx*********
if (context.Request.QueryString[“sessionId”].ToString() != “”)
{
//***** Only this line is my code.If I delete this code line, the vault works rightly
string productID = context.Request.Form[“ProductID”];
FileProcessor fp = new FileProcessor(UploadFolder);
fp.CurrentFileName =context.Request.QueryString["fileName"];
//************** In uploadhander.ashx*********
if (context.Request.QueryString[“sessionId”].ToString() != “”)
{
//***** Only this line is my code.If I delete this code line, the vault works rightly
string productID = context.Request.Form[“ProductID”];
FileProcessor fp = new FileProcessor(UploadFolder);
Hello,
In my case, I’m using that form field to give an upload path to the uploadHandler, because I need to have the uploaded files grouped in different folders. So I get the context.Request.Form[“ProductID”] before processing the file because fileProcessor object is created with the filePath parameter. After that, the fileProcessor.processBuffer method is called, and this method start writting the file in the given filePath. I tried getting the path before the processBuffer method is called but the problem continues.
So, I decide to create a class that handles the path as a static attribute, I think this should work but, do u have a way of giving vault that property?? I mean that vault could easily handle the path where it is needed to put the files uploaded.
The idea is that FileProcessor should at first receive the file, then you can use Form fields for whatever and even move the file to the right folder. Multiple files are processed one by one, so it should not be any difference. Please check your code - it should provide correct information back to the client (no exceptions etc.) so that the multiple file process can move smoothly.
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan