#10576 closed defect (fixed)
dojox.form.FileUploader standard behavior for additionalParams
Reported by: | Josh Trutwin | Owned by: | Mike Wilcox |
---|---|---|---|
Priority: | high | Milestone: | 1.5 |
Component: | DojoX Form | Version: | 1.4.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
When using a flash uploader, non-standard return params from the server are put in dataArray[i].additionalParams - this is not the case in an HTML uploader.
Email convo from Mike Wilcox regarding this:
Ah, I follow now. I made that change in the AS3 when I did the big refactor. I have no idea why I did it, but obviously didn't copy this over to the html uploader.
Thanks for finding this. It would be awesome if you made a note in the docs and made a ticket for me - I should fix that.
Mike Wilcox Software Engineer SitePen?, Inc. http://www.sitepen.com
On Dec 31, 2009, at 9:29 AM, Josh Trutwin wrote:
Say if I set these params in UploadFile?.php:
for flash:
$data = 'file='.$file ..... ',foo='.$bar;
for HTML:
$postdatafoo? = $bar;
In the return for flash-based I need to intercept foo param this way:
foo = dataArray[i].additionalParams.foo;
In html though I need to do this:
foo = dataArray[i].foo;
I *could* manually create $postdataadditionalParams?foo? before json-encoding it I guess but that makes the server-side code messier
- I guess it's just something to be aware of...
Change History (3)
comment:1 Changed 11 years ago by
Milestone: | tbd → 1.5 |
---|---|
Owner: | changed from dante to Mike Wilcox |
comment:2 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
(In [21403]) Fixed #10576 - Fixed UploadFile?.php so that HTML returns postdata in the additionalParams object as Flash does.