Jump to:

7937 Posts in 1537 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Can someone help me get DOM to work with S3?

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: 694 Views
  • otherjohn
    Avatar
    Community Member
    125 Posts

    Can someone help me get DOM to work with S3? Link to this post

    Hi all,
    I have a pressing project in which I need to get DOM to work with S3 but am lost on how to do it.
    Can someone help me on what I need to change to trigger uploadify to use S3 on DOM?
    John

  • otherjohn
    Avatar
    Community Member
    125 Posts

    Re: Can someone help me get DOM to work with S3? Link to this post

    Ok digging a bit, I can trigger the S3 upload form by changing around line 42 in FileDataObjectManager.php
    public $uploadifyField = "MultipleFileUploadField";
    to
    public $uploadifyField = "S3MultipleUploadField";

    But this is not all that is needed to be done. Now I need to figure out how to make sure it works. Uploading a test file seemed to go nowhere and hung on the next step so I am sure I am missing quite a bit. Any clues will help greatly!

  • otherjohn
    Avatar
    Community Member
    125 Posts

    Re: Can someone help me get DOM to work with S3? Link to this post

    Wait, I just realized I had my S3 config info in the wrong config file. It seems to be working now.
    Is it possible that changing that one line is all that was needed? If so, thats amazing!

    There seems to be one issue with large files (mp3), in which its not registering its uploaded. Smaller file sizes shows them moved to the "Attached" file spot in the popup but large ones don't seem to do so.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Can someone help me get DOM to work with S3? Link to this post

    Those properties are publicly visible for a reason! No need to hack the core.

    $yourDOM->uploadifyField = "S3MultipleUploadField";

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

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