1. #531
    Ext User
    Join Date
    Jan 2008
    Posts
    28
    Vote Rating
    0
    sekundek is on a distinguished road

      0  

    Default


    @jsakalos

    Here is my headers

    Response.AddHeader("Content-Type", type);
    Response.AddHeader("Content-Disposition", "attachment; filename=" + name + "; size=" + buffer.Length.ToString());

    code is aspx but this shouldn't be a problem.

  2. #532
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,521
    Vote Rating
    377
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    I have no specific idea about aspx. Anyway, you can download files from demo page (http://filetree.extjs.eu - right click on a file, open, download) so you could analyze headers in Firebug.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  3. #533
    Ext User
    Join Date
    Jan 2008
    Posts
    28
    Vote Rating
    0
    sekundek is on a distinguished road

      0  

    Default


    Could you send me your code from php responsible for sending download files. I've checked header and I see no difference.

    regards

    Uros

  4. #534
    Ext User
    Join Date
    Jan 2008
    Posts
    28
    Vote Rating
    0
    sekundek is on a distinguished road

      0  

    Default


    I found the sollution on this forum and for the moment it works

    all you need to change is

    Ext.EventManager.on(frame, Ext.isIE ? 'readystatechange' : 'load', callback, this);

    Ie somehov does not work ok with load even when loading IFRAME. I found searching google, that manny folks have the same kinda problems and this one seams to solve it.

    regards,
    U

  5. #535
    Ext User
    Join Date
    Jul 2008
    Posts
    9
    Vote Rating
    0
    mikecc is on a distinguished road

      0  

    Default


    Saki, does "node" automatically store an id? If so, could I just append onto every command in the params section something like ,node:node.id ? I can't find in the code where the get command populates its node parameter to the server

  6. #536
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,521
    Vote Rating
    377
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Well, I'm quite lost here. What problem are you trying to solve?
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  7. #537
    Ext User
    Join Date
    Jul 2008
    Posts
    9
    Vote Rating
    0
    mikecc is on a distinguished road

      0  

    Default


    Saki, I am trying to write my upload action, and I noticed that when I upload a file, it is only sending the server the path, not the filename. How can I get the filename?
    Last edited by mikecc; 2 Oct 2008 at 9:57 AM. Reason: totally new question

  8. #538
    Ext User
    Join Date
    Aug 2007
    Posts
    8
    Vote Rating
    0
    glaforge is on a distinguished road

      0  

    Default Can't get Ext.ux.UploadPanel to work

    Can't get Ext.ux.UploadPanel to work


    Hello,

    I found the Ext.ux.UploadPanel here and found it really awesome!
    So I decided to use in my application which uses Ext JS 2.2.

    I've created a page containing this:

    Code:
    <html>
        <head>
            <title>Title</title>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    
            <link rel="stylesheet" type="text/css" href="/js/ext/2.2/resources/css/ext-all.css" />
            <link rel="stylesheet" type="text/css" href="/js/ext/2.2/resources/css/xtheme-silverCherry.css" /
    
            
            <script type="text/javascript" src="/js/ext/2.2/adapter/ext/ext-base.js"></script>
            <script type="text/javascript" src="/js/ext/2.2/ext-all-debug.js"></script>
    
            <script type="text/javascript" src="/js/ext/ux/js/Ext.ux.form.BrowseButton.js"></script>
            <script type="text/javascript" src="/js/ext/ux/js/Ext.ux.FileUploader.js"></script>
            <script type="text/javascript" src="/js/ext/ux/js/Ext.ux.UploadPanel.js"></script>
            <script type="text/javascript" src="/js/ext/ux/js/Ext.ux.FileTreeMenu.js"></script>
            <script type="text/javascript" src="/js/ext/ux/js/Ext.ux.FileTreePanel.js"></script>
            <script type="text/javascript" src="/js/ext/ux/js/Ext.ux.ThemeCombo.js"></script>
            <script type="text/javascript" src="/js/ext/ux/js/Ext.ux.IconCombo.js"></script>
            <script type="text/javascript" src="/js/ext/ux/js/Ext.ux.LangSelectCombo.js"></script>
            <script type="text/javascript" src="/js/ext/ux/locale/fr_FR.js"></script>
    
            <script type="text/javascript">
                Ext.onReady(function() {
    
                    Ext.QuickTips.init();
    
                    var panel = new Ext.Panel({
                        width: 400,
                        height: 250,
                        layout: 'fit',
                        title: 'Upload',
                        renderTo: 'mydiv',
                        items: [{
                            xtype: 'uploadpanel',
                            buttonsAt: 'tbar',
                            id: 'uppanel',
                            url: 'filetree.php',
                            path: 'root',
                            maxFileSize: 1048576
                        }]
                    });
                });
            </script>
        </head>
        <body>
            <div id="mydiv">
            </div>
        </body>
    </html>
    But when loading this page, I get the following error in FireBug:
    Code:
    types[config.xtype || defaultType] is not a constructor
    create()()ext-all-debug.js (ligne 12296)
    createComponent()(Object xtype=uploadpanel)ext-all-debug.js (ligne 14198)
    lookupComponent()(Object xtype=uploadpanel)ext-all-debug.js (ligne 14192)
    add()(Object xtype=uploadpanel)ext-all-debug.js (ligne 14104)
    initComponent()()ext-all-debug.js (ligne 14039)
    initComponent()()ext-all-debug.js (ligne 15815)
    Component()(Object width=400 height=250 layout=fit)ext-all-debug.js (ligne 12354)
    getViewWidth()()ext-base.js (ligne 9)
    getViewWidth()()ext-base.js (ligne 9)
    getViewWidth()()ext-base.js (ligne 9)
    (?)()()test (ligne 41)
    fire()()ext-all-debug.js (ligne 1488)
    fireDocReady()()ext-all-debug.js (ligne 1592)
    getViewWidth()()ext-base.js (ligne 10)
    
    [IMG]chrome://firebug/content/blank.gif[/IMG]            return new types[config.xtype || defaultType](config);
    So it seems I'm doing something wrong, but I've not idea what

    Can anyone shed some light on this?

    Thanks in advance for your help.

    Guillaume
    Last edited by mystix; 3 Oct 2008 at 6:53 AM. Reason: merged with main thread. in future, pls post ux related questions in their respective threads.

  9. #539
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,521
    Vote Rating
    377
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Check paths of include files.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  10. #540
    Ext User
    Join Date
    Aug 2007
    Posts
    8
    Vote Rating
    0
    glaforge is on a distinguished road

      0  

    Default


    Quote Originally Posted by jsakalos View Post
    Check paths of include files.
    You're spot on, this was indeed a problem with my include files.
    This was a stupid error

    Thanks a lot for your help and for this great upload system!

Thread Participants: 173

  1. danvega (10 Posts)
  2. jay@moduscreate.com (1 Post)
  3. jweber (1 Post)
  4. jt (1 Post)
  5. slacker775 (2 Posts)
  6. vmorale4 (12 Posts)
  7. stever (2 Posts)
  8. Dumbledore (9 Posts)
  9. ismoore (1 Post)
  10. mystix (8 Posts)
  11. sdrew (3 Posts)
  12. mxracer (1 Post)
  13. Foggy (3 Posts)
  14. madrabaz (8 Posts)
  15. Thorsten (4 Posts)
  16. Fabyo (1 Post)
  17. mschaefer (11 Posts)
  18. tchitani (3 Posts)
  19. loeppky (11 Posts)
  20. damsfx (1 Post)
  21. cmendez21 (7 Posts)
  22. anjelika (3 Posts)
  23. randcasburn (3 Posts)
  24. mjlecomte (3 Posts)
  25. esoteric (10 Posts)
  26. pravin_bluebird (1 Post)
  27. ZooKeeper (4 Posts)
  28. george.antoniadis (1 Post)
  29. fermo111 (1 Post)
  30. glaforge (2 Posts)
  31. Spirit (1 Post)
  32. newc_k (1 Post)
  33. adam.jimenez (9 Posts)
  34. juandj (10 Posts)
  35. rballman (2 Posts)
  36. Michelangelo (6 Posts)
  37. kk_kkk (7 Posts)
  38. issomesmo (5 Posts)
  39. mashiki (1 Post)
  40. juljupy (2 Posts)
  41. cafebabe (1 Post)
  42. ferrenliu (1 Post)
  43. smartlit (14 Posts)
  44. chunkT (1 Post)
  45. mankz (6 Posts)
  46. luisparada (4 Posts)
  47. iDevelopment (4 Posts)
  48. cblin (9 Posts)
  49. ljaeren (2 Posts)
  50. endlichstudent (9 Posts)
  51. RacingTomcat (1 Post)
  52. lobo-tuerto (5 Posts)
  53. maximumcoder (1 Post)
  54. calavera (3 Posts)
  55. ningle (5 Posts)
  56. jbird526 (4 Posts)
  57. sekundek (8 Posts)
  58. GokhanNL (1 Post)
  59. markkl (1 Post)
  60. basshcm (2 Posts)
  61. dbraiden (2 Posts)
  62. incaic (2 Posts)
  63. silcreval (6 Posts)
  64. sirioz10 (2 Posts)
  65. iulian (2 Posts)
  66. hsurya (7 Posts)
  67. johnrembo (2 Posts)
  68. fraric (4 Posts)
  69. Silver Paladin (5 Posts)
  70. Rafael (2 Posts)
  71. treqx (1 Post)
  72. spectrus (6 Posts)
  73. JoyfulBobHome (2 Posts)
  74. fxlacroix (3 Posts)
  75. jove4015 (1 Post)
  76. rtrocc (12 Posts)
  77. carl23934 (1 Post)
  78. ClemsonJeeper (1 Post)
  79. lagos.tout (2 Posts)
  80. craigharmonic (3 Posts)
  81. siebertm (3 Posts)
  82. zombeerose (11 Posts)
  83. keckeroo (1 Post)
  84. dotchris (7 Posts)
  85. fallenone (4 Posts)
  86. yhwh (1 Post)
  87. harirama (2 Posts)
  88. scroll (1 Post)
  89. mlim1972 (4 Posts)
  90. Arthur.Blake (1 Post)
  91. nileshgund (1 Post)
  92. blow (1 Post)
  93. piyushjain7 (1 Post)
  94. njeriextjs (3 Posts)
  95. hileon (1 Post)
  96. bomka (15 Posts)
  97. --maty (1 Post)
  98. WhiteRussian (1 Post)
  99. kpopov (1 Post)
  100. captainfish (5 Posts)
  101. Gosa (5 Posts)
  102. extjsF4n (1 Post)
  103. Chida (1 Post)
  104. Nthalk (2 Posts)
  105. nescha (2 Posts)
  106. jorgemuza (3 Posts)
  107. Eric24 (1 Post)
  108. edui (1 Post)
  109. shadoi (4 Posts)
  110. acidfilez (1 Post)
  111. BrainDrain (2 Posts)
  112. dimitrij.zub (1 Post)
  113. ixnixnixn (2 Posts)
  114. calicoder (2 Posts)
  115. wes (1 Post)
  116. mammerman (1 Post)
  117. Voronchuk (3 Posts)
  118. jwmianzu (3 Posts)
  119. gnomie (2 Posts)
  120. pflammer (2 Posts)
  121. The0s (2 Posts)
  122. gogogo521 (1 Post)
  123. tegel (2 Posts)
  124. wulfshayde (2 Posts)
  125. mikecx (2 Posts)
  126. paul@demiduk.com (1 Post)
  127. romulodelazzari (1 Post)
  128. sabline (2 Posts)
  129. mikecc (8 Posts)
  130. dan.plifeye (2 Posts)
  131. JGALFO (1 Post)
  132. Stephan Schrade (3 Posts)
  133. khurri.saleem (1 Post)
  134. voidus (1 Post)
  135. Shockdoc1 (1 Post)
  136. dport (3 Posts)
  137. jahman (3 Posts)
  138. Pachat (4 Posts)
  139. BIS (1 Post)
  140. sanraj (4 Posts)
  141. deemonas (1 Post)
  142. jpipas (2 Posts)
  143. martinrame (2 Posts)
  144. MrEnirO (2 Posts)
  145. elona (1 Post)
  146. cwford (6 Posts)
  147. triptonemeister (2 Posts)
  148. gonzalez (1 Post)
  149. wallacer (1 Post)
  150. Natalie (2 Posts)
  151. Phatnine (2 Posts)
  152. js_coder (3 Posts)
  153. Bobrovnik (4 Posts)
  154. kender (1 Post)
  155. avsomeren (2 Posts)
  156. rkulkarni (2 Posts)
  157. lxfliu (2 Posts)
  158. pbaker99 (2 Posts)
  159. naf305 (2 Posts)
  160. cybervirax (1 Post)
  161. AmrMostafa (1 Post)
  162. tumbochka (1 Post)
  163. exdelierium (1 Post)
  164. toubeau (4 Posts)
  165. nosferatum (1 Post)
  166. Boy.Kortman (1 Post)
  167. erlinis (1 Post)
  168. nhocoi (2 Posts)
  169. varunach (1 Post)
  170. _DR_ (1 Post)
  171. rodenp (1 Post)
  172. tutuianu_daniel (1 Post)
  173. Shabneez (2 Posts)