Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Uploadify problem

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 781 Views
  • Xazen
    Avatar
    Community Member
    18 Posts

    Uploadify problem Link to this post

    When I try to add a FileUploadField to my backend. But it seems to has some problems. I tried it in FF8.0 and Chrome

    class Home extends Page {
       static $icon = "themes/luckychocolate/images/treeicons/home";
       
       static $db = array();
       
       static $has_one = array(
          'TestFile' => 'File'
       );
       
       function getCMSFields(){
          $fields = parent::getCMSFields();
          $fields->addFieldToTab('Root.Content.File', new FileUploadField('TestFile', 'Upload a file'));       
          return $fields;
       }
    }

    That's how the field looks like:
    Chrome:

    FireFox:

    If I click on the tabs, nothing seems to happen. After choosing a file, the filename will be displayed next to the Browse-button and nothing happends. In the "File & Images" section the form looks the same.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Uploadify problem Link to this post

    Looks like you have a Javascript error somewhere. Check the console.

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

  • AndrewNZ
    Avatar
    Community Member
    1 Post

    Re: Uploadify problem Link to this post

    Hi Xazen,

    Did you figure this out? We are having a similar problem. We installed DataObjectManager and Uploadify and ever since then, when we try to upload files (even from the standard Files & Images tab in the admin mode, we can select a file exactly like you but then nothing happens and no files get uploaded.

    Thanks

    Andrew

  • wvujeb
    Avatar
    Community Member
    1 Post

    Re: Uploadify problem Link to this post

    I'm having this same problem with the Files & Images tab. I've checked the console, but I'm not seeing any errors. Does anybody have suggestions on where else to check?

  • coffeespoon
    Avatar
    Community Member
    8 Posts

    Re: Uploadify problem Link to this post

    Hallo guys,

    I found the same issue. The solution was very easy. Change the folder's name from Uploadify to uploadify.
    http://www.silverstripe.org/dataobjectmanager-module-forum/show/16793

    Cheers

    781 Views
Page: 1
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.