[CLOSED] Multiupload ErrorCode

  1. #1

    [CLOSED] Multiupload ErrorCode

    Hi all,

    I got exactly the same error.

    Please try the following.

    1. Set up FormID="Form1" for the MultiUpload. It requires updating for the SVN trunk.

    2. Set up DisableViewState="false" for the ResourceManager.

    Does it help remedy the issue?
    Unfortunately, this is not solved my issue. Can you suggest any other way?

    Thanks,

    Vzx
    Last edited by Daniil; Dec 30, 2013 at 12:35 PM. Reason: [CLOSED]
  2. #2
    Did you update from SVN first?
    Just to ensure that your version of MultiUpload has FormID property
  3. #3
    Yes, i have the latest version. MultiUpload has FormID property.
  4. #4
    The code is below;

    <%@ Page Language="C#" %>
    
    <script runat="server">
        protected void MultiUpload1_FileUpload(object sender, FileUploadEventArgs e)
        {
            System.Threading.Thread.Sleep(3000); // for testing purposing only
            X.Msg.Notify("File is uploaded", "Name: " + e.FileName).Show();
        }
    </script>
    
    <!DOCTYPE html>
    
    <html>
    <head runat="server">
        <title>Simple MultiUpload - Ext.NET Examples</title>
        <link href="/resources/css/examples.css" rel="stylesheet" />
        <script type="text/javascript">
            var uploadError = function (item, file, errorCode, message) {
                alert("Error Code: " + errorCode + ", File name: " + file.name + ", File size: " + file.size + ", Message: " + message);
            };
    
            var fileSelectionError = function (item, file, errorCode, message) {
                alert("Error Code: " + errorCode + ", File name: " + file.name + ", File size: " + file.size + ", Message: " + message);
            };
        </script>
    </head>
    <body>
        <form runat="server"  id="Form1">
            <ext:ResourceManager runat="server" DisableViewState="false" />        
    
            <h1>Simple MultiUpload</h1>
            
            <ext:MultiUpload 
                ID="MultiUpload1" 
                runat="server"
                OnFileUpload="MultiUpload1_FileUpload"
                AutoStartUpload="true"
                FileDropAnywhere="true"
                FileSizeLimit="15 MB"
                FileTypes="*.*"
                FormID="Form1" 
                FileTypesDescription="All Files"
                FileUploadLimit="100"
                FileQueueLimit="0">
                <Listeners>
                    <UploadStart Handler="Ext.Msg.wait('Uploading...');" />
                    <UploadError Fn="uploadError" />
                    <FileSelectionError Fn="fileSelectionError" />
                    <UploadComplete Handler="Ext.Msg.hide();" />
                </Listeners>
            </ext:MultiUpload>
         </form>     
    </body>
    </html>
  5. #5
    What about to deactivate viewstate for flash request, like the following
    MultiUpload1.PostParams.Add(new Ext.Net.Parameter("__VIEWSTATE", ""));
  6. #6
    Quote Originally Posted by Vladimir View Post
    What about to deactivate viewstate for flash request, like the following
    MultiUpload1.PostParams.Add(new Ext.Net.Parameter("__VIEWSTATE", ""));
    This solved my problem. Thank you Vladimir.
  7. #7
    Hi.
    I noted the _VIESWSTATE solution works only sometimes. For example it work the first time but using the same function a second or a third time the error code appears and the upload fails. Sometime the error is raised on the first attempt too. I tried with different operanting systems (Windows 7, Windows XP), different briwsers (IE, Firefox, Chrome) on different workstations.

    Thanks.
    Stefano


    Quote Originally Posted by Vladimir View Post
    What about to deactivate viewstate for flash request, like the following
    MultiUpload1.PostParams.Add(new Ext.Net.Parameter("__VIEWSTATE", ""));
  8. #8
    We will try to reproduce it
    Just question, do you need viewstate on that page with multiupload? Is it so required?
  9. #9
    Otherwise (without Viewstate) the error is presented evetytime.

    Thanks.
    Stefano


    Quote Originally Posted by Vladimir View Post
    We will try to reproduce it
    Just question, do you need viewstate on that page with multiupload? Is it so required?
  10. #10
    Hi,

    I cannot reproduce the issue if __VIEWSTATE parameter is added to PostParams
    I cannot reproduce the issue if viewstate is deactivated in ResourceManager (DisableViewState is true)

    So, please create new thread and post simple test case reproduces the issue
    Discussion in this thread is closed

Similar Threads

  1. [CLOSED] Multiupload error code
    By Digital.Dynamics in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 23, 2013, 4:32 AM
  2. [CLOSED] MultiUpload in IE10 -movieElement undefined
    By ViDom in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 08, 2013, 11:49 AM
  3. [FIXED] [2.4] MultiUpload selection limit error
    By xtremexploit in forum Bugs
    Replies: 13
    Last Post: Nov 04, 2013, 5:01 AM
  4. MultiUpload how to access to PostParams
    By xtremexploit in forum 2.x Help
    Replies: 2
    Last Post: Oct 31, 2013, 9:09 PM
  5. Simple MultiUpload not working on IE9 (Windows 7)
    By xtremexploit in forum 2.x Help
    Replies: 1
    Last Post: Oct 28, 2013, 9:02 AM

Tags for this Thread

Posting Permissions