<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Amazon S3 plugin for WordPress</title>
	<atom:link href="http://tantannoodles.com/toolkit/wordpress-s3/feed/" rel="self" type="application/rss+xml" />
	<link>http://tantannoodles.com</link>
	<description>msg free since 2005</description>
	<pubDate>Wed, 20 Aug 2008 00:59:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Khairil</title>
		<link>http://tantannoodles.com/toolkit/wordpress-s3/#comment-94058</link>
		<dc:creator>Khairil</dc:creator>
		<pubDate>Mon, 11 Aug 2008 03:21:30 +0000</pubDate>
		<guid isPermaLink="false">http://tantannoodles.com/toolkit/wordpress-s3/#comment-94058</guid>
		<description>I set my "Store uploads in this folder" in Misc option as "files/media"

On top of that, in the config.php file I set WP_CONTENT_DIR to $_SERVER['DOCUMENT_ROOT'] . '/files'

Whenever I upload a file, it would be saved correctly on my website i.e. http://domain.com/files/media/2008/08/11/filename.txt but on S3 it would go to root/files/uploads/2008/08/11/filename.txt

It still upload to a directory called "uploads". I wish for the files to be directly hosted in "files" directory or at least the same as the above, "files/media"

Please advice. Thanks.</description>
		<content:encoded><![CDATA[<p>I  set  my  &#8220;Store  uploads  in  this  folder&#8221;  in  Misc  option  as  &#8220;files/media&#8221;</p>
<p>On  top  of  that,  in  the  config.php  file  I  set  WP_CONTENT_DIR  to  $_SERVER['DOCUMENT_ROOT']  .  &#8216;/files&#8217;</p>
<p>Whenever  I  upload  a  file,  it  would  be  saved  correctly  on  my  website  i.e.  <a href="http://domain.com/files/media/2008/08/11/filename.txt" rel="nofollow"> http://domain.com/files/media/2008/08/11/filename.txt</a>  but  on  S3  it  would  go  to  root/files/uploads/2008/08/11/filename.txt</p>
<p>It  still  upload  to  a  directory  called  &#8220;uploads&#8221;.  I  wish  for  the  files  to  be  directly  hosted  in  &#8220;files&#8221;  directory  or  at  least  the  same  as  the  above,  &#8220;files/media&#8221;</p>
<p>Please  advice.  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Shickles</title>
		<link>http://tantannoodles.com/toolkit/wordpress-s3/#comment-93872</link>
		<dc:creator>Steve Shickles</dc:creator>
		<pubDate>Tue, 22 Jul 2008 19:38:25 +0000</pubDate>
		<guid isPermaLink="false">http://tantannoodles.com/toolkit/wordpress-s3/#comment-93872</guid>
		<description>Is there any way to get the file to save in a directory under a bucket? Like I have a bucket named media.digiratidad.com and I want my files saved in a directory called images. Is this possible?</description>
		<content:encoded><![CDATA[<p>Is  there  any  way  to  get  the  file  to  save  in  a  directory  under  a  bucket?  Like  I  have  a  bucket  named  media.digiratidad.com  and  I  want  my  files  saved  in  a  directory  called  images.  Is  this  possible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://tantannoodles.com/toolkit/wordpress-s3/#comment-93831</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Thu, 17 Jul 2008 18:06:07 +0000</pubDate>
		<guid isPermaLink="false">http://tantannoodles.com/toolkit/wordpress-s3/#comment-93831</guid>
		<description>So here is a bug, depending what env you are on. 
Its related to the function dns_get_record.
If you are getting a DNS record message, do the following (add a pre-fix  '.' to the string 's3.amazonaws.com':


class-plugin.php (line 108)

Change:
if (($record[0]['type'] != 'CNAME') &#124;&#124; ($record[0]['target'] != $_POST['options']['bucket'].'s3.amazonaws.com')) {
TO:
if (($record[0]['type'] != 'CNAME') &#124;&#124; ($record[0]['target'] != $_POST['options']['bucket'].'.s3.amazonaws.com')) {

Hope that helps.

BTW: Why are files still stored in wp-content/uploads/ (in addition to S3) when using this plugin? Is there any way to NOT create the files in 'uploads' - seems a waste of space since it is never used.</description>
		<content:encoded><![CDATA[<p>So  here  is  a  bug,  depending  what  env  you  are  on.<br />
Its  related  to  the  function  dns_get_record.<br />
If  you  are  getting  a  DNS  record  message,  do  the  following  (add  a  pre-fix    &#8216;.&#8217;  to  the  string  &#8217;s3.amazonaws.com&#8217;:</p>
<p>class-plugin.php  (line  108)</p>
<p>Change:<br />
if  (($record[0]['type']  !=  &#8216;CNAME&#8217;)  ||  ($record[0]['target']  !=  $_POST['options']['bucket'].&#8217;s3.amazonaws.com&#8217;))   {<br />
TO:<br />
if  (($record[0]['type']  !=  &#8216;CNAME&#8217;)  ||  ($record[0]['target']  !=  $_POST['options']['bucket'].&#8217;.s3.amazonaws.com&#8217;) )  {</p>
<p>Hope  that  helps.</p>
<p>BTW:  Why  are  files  still  stored  in  wp-content/uploads/  (in  addition  to  S3)  when  using  this  plugin?  Is  there  any  way  to  NOT  create  the  files  in  &#8216;uploads&#8217;  -  seems  a  waste  of  space  since  it  is  never  used.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simple Things</title>
		<link>http://tantannoodles.com/toolkit/wordpress-s3/#comment-93829</link>
		<dc:creator>Simple Things</dc:creator>
		<pubDate>Thu, 17 Jul 2008 17:09:53 +0000</pubDate>
		<guid isPermaLink="false">http://tantannoodles.com/toolkit/wordpress-s3/#comment-93829</guid>
		<description>just got this one...
http://www.project-tina.com
i thing its very good if we have compare it with wordpress...
I just have got idea when some of my friends have sucsess compare it with His joomla...

Any idea ? :)</description>
		<content:encoded><![CDATA[<p>just  got  this  one&#8230;<br />
<a href="http://www.project-tina.com" rel="nofollow">http://www.project-tina.com</a><br />
i  thing  its  very  good  if  we  have  compare  it  with  wordpress&#8230;<br />
I  just  have  got  idea  when  some  of  my  friends  have  sucsess  compare  it  with  His  joomla&#8230;</p>
<p>Any  idea  ?  <img src='http://tantannoodles.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://tantannoodles.com/toolkit/wordpress-s3/#comment-93828</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Thu, 17 Jul 2008 16:47:54 +0000</pubDate>
		<guid isPermaLink="false">http://tantannoodles.com/toolkit/wordpress-s3/#comment-93828</guid>
		<description>Is this working with WP 2.6?
I got it to work for WP 2.5 - but in WP 2.6 I keep getting DNS errors when saving the bucket name in the settings.</description>
		<content:encoded><![CDATA[<p>Is  this  working  with  WP  2.6?<br />
I  got  it  to  work  for  WP  2.5  -  but  in  WP  2.6  I  keep  getting  DNS  errors  when  saving  the  bucket  name  in  the  settings.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Tan</title>
		<link>http://tantannoodles.com/toolkit/wordpress-s3/#comment-93826</link>
		<dc:creator>Joe Tan</dc:creator>
		<pubDate>Thu, 17 Jul 2008 15:27:45 +0000</pubDate>
		<guid isPermaLink="false">http://tantannoodles.com/toolkit/wordpress-s3/#comment-93826</guid>
		<description>@C.K. Sample III, I'm not sure what is going on. check the permissions on your bucket... perhaps something is not set correctly?</description>
		<content:encoded><![CDATA[<p>@C.K.  Sample  III,  I&#8217;m  not  sure  what  is  going  on.  check  the  permissions  on  your  bucket&#8230;  perhaps  something  is  not  set  correctly?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Tan</title>
		<link>http://tantannoodles.com/toolkit/wordpress-s3/#comment-93825</link>
		<dc:creator>Joe Tan</dc:creator>
		<pubDate>Thu, 17 Jul 2008 15:26:16 +0000</pubDate>
		<guid isPermaLink="false">http://tantannoodles.com/toolkit/wordpress-s3/#comment-93825</guid>
		<description>@Matthew and @Mertonium,

Yeah, uploaded files must pass through the WordPress application, since thumbnails need to get generated, and other meta data about the files registered. I'll look into seeing if there's a way to upload directly to S3, but one of the roadblocks that prevented me from doing this was that Amazon S3 doesn't really support direct file uploads via a browser.

As for deleting files after they've been uploaded, this is an option on my todo list. But one of the reasons I didn't automatically delete the files was so that if the plugin was disabled (for whatever reason), then references to your uploads would automatically revert back to your blog. So in a way, it acts as a backup for your media. 

Thanks for the feedback!</description>
		<content:encoded><![CDATA[<p>@Matthew  and  @Mertonium,</p>
<p>Yeah,  uploaded  files  must  pass  through  the  WordPress  application,  since  thumbnails  need  to  get  generated,  and  other  meta  data  about  the  files  registered.  I&#8217;ll  look  into  seeing  if  there&#8217;s  a  way  to  upload  directly  to  S3,  but  one  of  the  roadblocks  that  prevented  me  from  doing  this  was  that  Amazon  S3  doesn&#8217;t  really  support  direct  file  uploads  via  a  browser.</p>
<p>As  for  deleting  files  after  they&#8217;ve  been  uploaded,  this  is  an  option  on  my  todo  list.  But  one  of  the  reasons  I  didn&#8217;t  automatically  delete  the  files  was  so  that  if  the  plugin  was  disabled  (for  whatever  reason),  then  references  to  your  uploads  would  automatically  revert  back  to  your  blog.  So  in  a  way,  it  acts  as  a  backup  for  your  media.  </p>
<p>Thanks  for  the  feedback!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mertonium</title>
		<link>http://tantannoodles.com/toolkit/wordpress-s3/#comment-93824</link>
		<dc:creator>Mertonium</dc:creator>
		<pubDate>Thu, 17 Jul 2008 15:03:42 +0000</pubDate>
		<guid isPermaLink="false">http://tantannoodles.com/toolkit/wordpress-s3/#comment-93824</guid>
		<description>I was having a similar issue as Matthew (I only want the contents of my 'uploads' stored on S3 - not on my webhost).  After studying Tan Tan's code, I see that I can't bypass the content being uploaded to my webhost, but I can delete it after its been copied to S3.

I know there are cleaner ways to do this - like adding a 'Do you want to store your uploads only on S3?' option to the plugin setup screen - but I'm in a rush.  This is what I did to get that effect:

Open the "{plugins-folder}/tantan/wordpress-s3/class-plugin.php" file.  
Look for the following line of code in the wp_update_attachment_metadata method:
"if ($this-&#62;s3-&#62;putObjectStream($this-&#62;options['bucket'], $prefix.$file['name'], $file)) {"

At the END of this if statement (just before the 'else') add the following line:
unlink($data['file']);

Thanks again for the sweet plugin.</description>
		<content:encoded><![CDATA[<p>I  was  having  a  similar  issue  as  Matthew  (I  only  want  the  contents  of  my  &#8216;uploads&#8217;  stored  on  S3  -  not  on  my  webhost).    After  studying  Tan  Tan&#8217;s  code,  I  see  that  I  can&#8217;t  bypass  the  content  being  uploaded  to  my  webhost,  but  I  can  delete  it  after  its  been  copied  to  S3.</p>
<p>I  know  there  are  cleaner  ways  to  do  this  -  like  adding  a  &#8216;Do  you  want  to  store  your  uploads  only  on  S3?&#8217;  option  to  the  plugin  setup  screen  -  but  I&#8217;m  in  a  rush.    This  is  what  I  did  to  get  that  effect:</p>
<p>Open  the  &#8220;{plugins-folder}/tantan/wordpress-s3/class-plugin.php &#8221;  file.<br />
Look  for  the  following  line  of  code  in  the  wp_update_attachment_metadata  method:<br />
&#8220;if  ($this-&gt;s3-&gt;putObjectStream($this-&gt;options['bucket' ],  $prefix.$file['name'],  $file))  {&#8221;</p>
<p>At  the  END  of  this  if  statement  (just  before  the  &#8216;else&#8217;)  add  the  following  line:<br />
unlink($data['file']);</p>
<p>Thanks  again  for  the  sweet  plugin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2008-07-16 &#124; Thought Stream: Nitin Badjatia's Weblog</title>
		<link>http://tantannoodles.com/toolkit/wordpress-s3/#comment-93819</link>
		<dc:creator>links for 2008-07-16 &#124; Thought Stream: Nitin Badjatia's Weblog</dc:creator>
		<pubDate>Wed, 16 Jul 2008 06:31:12 +0000</pubDate>
		<guid isPermaLink="false">http://tantannoodles.com/toolkit/wordpress-s3/#comment-93819</guid>
		<description>[...] Amazon S3 plugin for WordPress : tan tan noodles - msg free since 2005 Merging two of my favorite technologies, Amazon S3 &#38; Wordpress  (tags: wordpress s3 amazon plugin plugins storage blogging hosting) [...]</description>
		<content:encoded><![CDATA[<p>[...]  Amazon  S3  plugin  for  WordPress  :  tan  tan  noodles  -  msg  free  since  2005  Merging  two  of  my  favorite  technologies,  Amazon  S3  &#38;  Wordpress    (tags:  wordpress  s3  amazon  plugin  plugins  storage  blogging  hosting)  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sample the Web &#124; Doodling&#8230;</title>
		<link>http://tantannoodles.com/toolkit/wordpress-s3/#comment-93814</link>
		<dc:creator>Sample the Web &#124; Doodling&#8230;</dc:creator>
		<pubDate>Tue, 15 Jul 2008 16:09:24 +0000</pubDate>
		<guid isPermaLink="false">http://tantannoodles.com/toolkit/wordpress-s3/#comment-93814</guid>
		<description>[...] a big nose Just testing uploading to Amazon S3 using WordPress&#8217;s built-in upload tools and this Amazon S3 plugin for WordPress. I&#8217;m debating mirroring my Flickr account on S3, so that my images will still be in the [...]</description>
		<content:encoded><![CDATA[<p>[...]  a  big  nose  Just  testing  uploading  to  Amazon  S3  using  WordPress&#8217;s  built-in  upload  tools  and  this  Amazon  S3  plugin  for  WordPress.  I&#8217;m  debating  mirroring  my  Flickr  account  on  S3,  so  that  my  images  will  still  be  in  the  [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
