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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Can someone help me get DOM to work with S3?


Reply


4 Posts   730 Views

Avatar
otherjohn

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?
John

Avatar
otherjohn

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";
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!

Avatar
otherjohn

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.

Avatar
UncleCheese

Forum Moderator, 4094 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: http://www.leftandmain.com