Can someone fix this?
Colin Clark
colin.clark at utoronto.ca
Thu Jun 25 18:18:57 UTC 2009
Hi Cindy,
Aaron was right that this was probably a bug in the documentation, but
in a slightly different respect.
The code does work if you specify your "decorators" options as an
array. Here's a revised version of your configuration block that
correctly loads the browse button image from the ATutor server:
var myUploader =
fluid.progressiveEnhanceableUploader(".flc-uploader", ".fl-progEnhance-
basic", {
demo: true,
uploadManager: {
type: "fluid.swfUploadManager",
options: {
// This option points to the location of the
SWFUpload Flash object that ships with Fluid Infusion.
flashURL: "http://atutor.ca/swfupload.swf"
}
},
decorators: [{
type: "fluid.swfUploadSetupDecorator",
options: {
// This option points to the location of the
Browse Files button used with Flash 10 clients.
flashButtonImageURL: "http://atutor.ca/browse.png
"
}
}]
});
I hope this helps. Let me know if it works,
Colin
On 25-Jun-09, at 8:34 AM, Cindy Qi Li wrote:
> That's great. Attached is my test code, modified from the sample
> uploder code in fluid wiki page. Thanks.
>
> ----- Original Message ----- From: "Colin Clark" <colin.clark at utoronto.ca
> >
> To: "Cindy Qi Li" <cindyqi.li at utoronto.ca>
> Cc: <fluid-work at fluidproject.org>
> Sent: Thursday, June 25, 2009 8:29 AM
> Subject: Re: Can someone fix this?
>
>
>> Hi Cindy,
>>
>> Erin and Daphne were the designers rather than the developers of
>> the code. I'll try to take a look at your issue today. In the
>> meantime, can you send along a copy of the configuration block
>> you're using for the Uploader, showing us how you've got it it set
>> up?
>>
>> Colin
>>
>> On 24-Jun-09, at 4:16 PM, Cindy Qi Li wrote:
>>
>>> Hi Erin & Daphne, I see your names listed on the bug tracker
>>> that you are coordinating on file uploader. After a few rounds
>>> of discussion with Aaron, the same problem still persists. Would
>>> you be able to help us or point us to the right person? Thanks a
>>> lot.
>>>
>>> ----- Original Message ----- From: "Aaron Brown" <aaron at thebrownproject.com
>>> >
>>> To: <fluid-work at fluidproject.org>
>>> Sent: Wednesday, June 24, 2009 11:04 AM
>>> Subject: Re: Can someone fix this?
>>>
>>>
>>>> Cindy Qi Li wrote:
>>>>> We are just about to release ATutor and want to upgrade the fluid
>>>>> library to the latest version but this bug is preventing us
>>>>> from doing
>>>>> so. We only have a few days before the code freezes for the coming
>>>>> release. We'd like to include fluid now because it will be
>>>>> another 6
>>>>> months before the next release. We hope someone could help us
>>>>> resolve
>>>>> this bug quickly.
>>>>>
>>>>> http://issues.fluidproject.org/browse/FLUID-2938
>>>>
>>>> I'm pretty sure I was the one who submitted that bug in the first
>>>> place.
>>>> It turns out it's a matter of proper configuration, and was more
>>>> a bug
>>>> in the wiki than the code. The wiki manual has been updated and
>>>> shows
>>>> the proper way to set those preferences. If you follow the
>>>> current wiki
>>>> example, it ought to work. It does for me, anyway.
>>>>
>>>> http://wiki.fluidproject.org/display/fluid/Uploader+Tutorial
>>>>
>>>> The key section is in the Tutorial, step 2, the "uploadManager:"
>>>> and
>>>> "decorators:" keys both require "options" elements within them,
>>>> and you
>>>> set your preferences there.
>>
>>
>> ---
>> Colin Clark
>> Technical Lead, Fluid Project
>> Adaptive Technology Resource Centre, University of Toronto
>> http://fluidproject.org
>>
> <uploader.html>
---
Colin Clark
Technical Lead, Fluid Project
Adaptive Technology Resource Centre, University of Toronto
http://fluidproject.org
More information about the fluid-work
mailing list