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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Can someone help me get DOM to work with S3?

Go to End

4 Posts   934 Views


Community Member, 125 Posts

5 October 2010 at 9:14am

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?


Community Member, 125 Posts

6 October 2010 at 3:27am

Ok digging a bit, I can trigger the S3 upload form by changing around line 42 in FileDataObjectManager.php
public $uploadifyField = "MultipleFileUploadField";
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!


Community Member, 125 Posts

6 October 2010 at 3:42am

Edited: 06/10/2010 3:45am

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.


Forum Moderator, 4102 Posts

6 October 2010 at 10:30am

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

$yourDOM->uploadifyField = "S3MultipleUploadField";

SilverStripe tips, tutorials, screencasts and more: