Hi Cheese!
Ok, I get the HTTP Error on error. And to debug it, I have put die("hello"); in the first line of "public function uploads3() "
BUT, it still gives me the "HTTP ERROR". I am kinda lost on where to check next. This is just a test page to make sure the S3 is working.
Any idea on how I can debug this further?
--changed the name of my buckets and auth codes below.
Here is my code
in uploadify folder _config I have
<?php
S3File::set_auth("xxxxxxxxxx", "xxxxxxxxxxx");
S3File::set_default_bucket('media.mydomain.com');
Director::addRules(10, array(
UploadifyUploader::$url_segment => 'UploadifyUploader'
));
and my test page code has:
<?php
class TestPage extends Page {
public static $db = array(
);
public static $has_one = array(
'S3Test' => 'S3File'
);
public function getCMSFields() {
$f = parent::getCMSFields();
$f->addFieldToTab("Root.Content.S3 Storage", $s3 = new S3UploadField('S3Test','Send a file to Amazon S3'));
$s3->setVar('s3bucket', 'media.mydomain.com');
return $f;
}
}
class TestPage_Controller extends Page_Controller {
public static $allowed_actions = array ();
public function init() {
parent::init();
}
}