-
28 Aug 2007 5:51 PM #41
Hi, anjelika.
The dialog posts data under 'file' key, not 'uploadedfile'.Use the force - read the source.
My ExtJS extensions can be found here: http://max-bazhenov.com/dev/
-
28 Aug 2007 11:58 PM #42
Sorry, I am such a fool.
It works now, thanks a lot!
Keep up the good work
-
30 Aug 2007 5:28 PM #43
setting base_params
setting base_params
I need to set a value for an extra parameter I want to return with the file. This value is set from a combobox. I have the combobox and a listener which gets called when the combobox value changes. I'm just not clear on the syntax to add another submit parameter at runtime. I have tried:
Code:dialog.setBaseParams({leads_source: value}) dialog.setBaseParams('{leads_source: '+ value + ' }')
-
30 Aug 2007 6:22 PM #44
Use the force - read the source.
My ExtJS extensions can be found here: http://max-bazhenov.com/dev/
-
1 Sep 2007 1:54 AM #45
Great tool, but I run against something strange.
I think it has to do with my JSON-return (I'm on php4, so json_encode doesnt' work). After succesfully uploading the first file, the second file doesn't start automatically. It doesn't matter if I set upload_autostart to false or true. When I click on a file in the grid, it changed the 'abort' button to 'upload'. When clicking this button, the file is uploaded.
In FireBug it shows these errors:
On opening the dialog:
mask has no properties
http://schanulleke/bvkd/inet/inet_v4...load-dialog.js
Line 14
After successfully uploading the first file:
el has no properties
http://schanulleke/bvkd/inet/inet_v4...ext/ext-all.js
Line 10
After hitting the 'abort' button:
record has no properties
http://schanulleke/bvkd/inet/inet_v4...ploadDialog.js
Line 692
I'm using Ext 1.1, php 4.3 and IE 6 / FF 2.006.
Thanks in advance and keep up the good work!
-
1 Sep 2007 7:29 AM #46
Can you post here the actual JSON-response, and the PHP code encoding the response into json-message?I think it has to do with my JSON-return (I'm on php4, so json_encode doesnt' work).Use the force - read the source.
My ExtJS extensions can be found here: http://max-bazhenov.com/dev/
-
1 Sep 2007 7:44 AM #47
You can't return JSON from a file upload. The response is loaded into an iframe as HTML. The response text is scraped as the innerHTML of the document body.
That probably won't be valid JSON.
XML is returned correctly though.
-
1 Sep 2007 8:20 AM #48
Why do you think that the returned json-message will be invalid?
Use the force - read the source.
My ExtJS extensions can be found here: http://max-bazhenov.com/dev/
-
20 Sep 2007 6:42 AM #49
Help
Help
Hi;
Your demo looks great, Iam trying to learn EXTJS to create someting just like this.
I have downloaded your zip, but it is missing upload-dialog-request.php, which I assume is the required file to save the uploads to a file location or mysql database.
Can you help by supplying the file so I can learn how it is done.
Thanks.
-
20 Sep 2007 12:43 PM #50
The upload-dialog-request.php isn't missing
, the code of upload-dialog-request.php which I use in the demo is following:
As you can see it doesn't save uploaded file anywhere and just returns success response in any case. I don't want all that files that visitors uploaded during the demo testingCode:<?php $response = array( 'success' => true ); echo json_encode($response); ?>
If you are using php on the server side then you can get all data required to handle an uploaded file in the $_FILES['file'] variable. The PHP's uploaded file handling is described here
http://www.php.net/manual/en/features.file-upload.phpUse the force - read the source.
My ExtJS extensions can be found here: http://max-bazhenov.com/dev/


Reply With Quote