Ok, so for anyone who has the same issue, here is the solution.
There is a bug in the code, in file aws_ops.class.php, line 72
$key = $this->options["bucket_path"] . "/" . $key;
In case that we want to upload images directly to the root of the bucket to path /upload/…., this line causes that “/” directory is created in root and after that upload directory is inserted to this “/” directory.
It doesn’t matter if we enter “/” or “” inside the S3 Bucket path in the tcS3 configuration page. The only solution is currently to comment the line to following form:
$key = /*$this->options["bucket_path"] . "/" .*/ $key;
Hope author of this great plugin will fix it as soon as possible. It’s a shame that this new version is so buggy. It completely removes all settings and also doesn’t work properly for previous long-time usage scenarios.
-
This reply was modified 7 years, 1 month ago by ludekvodicka.