Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Uploadify not working

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1 2 3
Go to End
Author Topic: 3741 Views
  • banal
    Avatar
    Community Member
    901 Posts

    Re: Uploadify not working Link to this post

    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%

  • UncleCheese
    Avatar
    4085 Posts

    Re: Uploadify not working Link to this post

    I've replicated the bug. Working on it.

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

  • UncleCheese
    Avatar
    4085 Posts

    Re: Uploadify not working Link to this post

    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

  • UncleCheese
    Avatar
    4085 Posts

    Re: Uploadify not working Link to this post

    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

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Uploadify not working Link to this post

    @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.

  • bunheng
    Avatar
    Community Member
    78 Posts

    Re: Uploadify not working Link to this post

    Hi,

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

    Thanks

  • UncleCheese
    Avatar
    4085 Posts

    Re: Uploadify not working Link to this post

    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

  • ryeze
    Avatar
    Community Member
    6 Posts

    Re: Uploadify not working Link to this post

    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.

    3741 Views
Page: 1 2 3
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.