Hi,
I like your FileTree ans would like to have the PHP backend. Could you please contact me under sendmeamailtothis@gmx.de for the donation-information?
Thanks
Printable View
Hi,
I like your FileTree ans would like to have the PHP backend. Could you please contact me under sendmeamailtothis@gmx.de for the donation-information?
Thanks
Hi everybody!
I managed to build filetree.php file but I really got a problem to return JSON formated data:
What am I supposed to do? For now, my get() method, for instance, only returns the json encoded data.
I'm supposed to deal with headers but since this is my first attempt to deal with extjs I'm a bit lost..
Could someone telle me how to get a correct return? Where and how to use headers?
Thank you!
You can analyze the example with Firebug to see what is sent/received.
This is what I got with firebug:
Attachment 20608
I got a connection closed.
This is how my get() ends:
A var_dump of "json_encode($result);" return what it's supposed to return.PHP Code:
header("HTTP/1.1 200 OK");
header("Content-Type: application/json; charset=utf-8");
return json_encode($result);
Any idea?
No real idea but try to return content-type:text/html. Files are uploaded with the help of hidden iframes that do not play well with application/json content-type.
Nope... still connection closed.
Would you send me a snippet of get() please? (just header and footer of the function, to see where are the differences)
Now everything is ok: I just had to replace this:
with that:PHP Code:
header("HTTP/1.1 200 OK");
header("Content-Type: application/json; charset=utf-8");
return json_encode($result);
Thanks a lot jsakalosPHP Code:
print json_encode($result);
I'm trying to upload multiple files using 'upload' from FileTreeMenu,I'm able to add files to the Upload Queue but when click on Upload it's not doing anything.
While debugging FileTreeMenu turned out that store obj used for uploading files is been retured null.
May I missing something? Please Help!!!!
I'm using Firebug to debug,but not able to under what is missing.
FYI : I have moved this from the General Forum.
thanks
Radhika
The UX was originally written for 2.x and I haven't tested it on 3.x so the way would be to step through code to find out what's happening in there.
The UX have some problems with 3.x. I did some digging and fixed the extension for 3.x. Tested it with the latest ExtJS version and seem to work ok. Here is the client code with a sample:
https://subversion.assembla.com/svn/...er35s0eJe5cbLr
Here is backend java code that i tested this with:
http://subversion.assembla.com/svn/c...r37uceJe5cbCb/