Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

Uploadify not working


Go to End


17 Posts   7087 Views

Avatar
bummzack

Community Member, 904 Posts

29 June 2011 at 8:57pm

Edited: 30/06/2011 12:36am

Same issue here. Latest version of DOM and Uploadify (from github).

Using an Uploadify-Field in a Page or DOM-Poupup (eg. by editing an existing entry) works fine, just not when using the "Add NameOfDataObject" button with the ImageDataObjectManager.

I'm sure it worked a few versions back..

Update: Upload doesn't work in the "Files & Images" tab either. So it's most likely a bug in the DOM and not in the Uploadify code. I'm not able to track it down though. Got no error in the logs.. the upload just keeps sitting at 0%

Avatar
UncleCheese

Forum Moderator, 4102 Posts

30 June 2011 at 3:17am

I've replicated the bug. Working on it.

--------------------
SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

Avatar
UncleCheese

Forum Moderator, 4102 Posts

30 June 2011 at 3:24am

Oh. Duh.

There was a change to DOM to initiate the upload on submission of the form, not on completion of the dialog box. You just need to click the button.

People were complaining about the usability issues of being able to upload files and closing the popup before they're actually saved. It wasn't clear that you had to click the "continue" button to actually write the files to the DOM.

I think we should make this an option in DOM and have it default to the old behavior.

--------------------
SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

Avatar
UncleCheese

Forum Moderator, 4102 Posts

30 June 2011 at 3:27am

OK, the change is in the repo. Just use $dom->uploadOnSubmit(); to replicate the current functionality, but for now it defaults to the old behaviour so as not to confuse users like you guys. :-)

Sorry about that! Hadn't quite thought through the effects of that change.

--------------------
SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

Avatar
bummzack

Community Member, 904 Posts

30 June 2011 at 4:52am

@UncleCheese Oh man. I didn't even think about clicking on continue. I was so used to the old behavior. Nevertheless, I think reverting to the old behavior was a good choice, since it's consistent with the functionality of the uploadify-field elsewhere in the CMS.

Avatar
bunheng

Community Member, 78 Posts

10 July 2011 at 4:00am

Hi,

So where we make change to work functionally I also having same problem on ImageObjectManager.

Thanks

Avatar
UncleCheese

Forum Moderator, 4102 Posts

11 July 2011 at 6:14am

You shouldn't have to change anything. The latest version triggers the upload automatically by default. In older versions, you had to click "continue" to start the upload.

---------------
Silverstripe tips, tutorials, screencasts, and more. http://www.leftandmain.com

Avatar
ryeze

Community Member, 6 Posts

13 July 2011 at 3:21pm

how to use $ dom-> uploadOnSubmit ();? sorry if my question is too simple. I want to display the fields on the content to download, but the continue button does not appear on the field.