[Dojo-interest] ajax file upload

Ed Lazor edlazor at internetarchitects.biz
Tue Jul 21 14:58:53 EDT 2009


Hi Mike,

More info from Safari error console:

Topic Publish: filesSelected
 * * * Flash Uploader Disable:: true
upload type: flash  - postData:
MouseEvent
Error: Sorry, the SWF failed to initialize.Error: Error in
Actionscript. Use a try/catch block to find error.


That's the error I get when clicking the Upload Files button after
upgrading to 1.3.2 and moving isDebug and devMode into the options for
dojox.form.FileUploader:

			uploader = new dojox.form.FileUploader({
			    	button:dijit.byId("myFakeButton"),
			    	uploadUrl:"http://ed.dev.bycios.com/test/test-ajax-upload",
			    	isDebug:"true",
			    	devMode:"true"
				});

Any ideas?  Is there a way to set Flash Uploader Disable to false?

-Ed


On Tue, Jul 21, 2009 at 5:11 AM, Mike Wilcox<mwilcox at sitepen.com> wrote:
> The only thing I see that you are doing is 'isDebug' and 'devMode' at
> the end of the script. Those need to be inserted into the FileUploader
> as properties so that they will be sent to the SWF on creation. This
> wouldn't cause the error, but will hopefully give a better error
> message.
>
> BTW, if you're able to upgrade, the FileUploader in Dojo 1.32 is much
> improved, including its error handling.


More information about the Dojo-interest mailing list