Everything seems to work... images are getting uploaded to S3 but when using the RTE image tool the referenced image is coming from the /media folder instead of S3. Thoughts? All config values are set to true.
I have exactly the same problem as Robert. Image uploading works seamlessly but no matter how I try to position the media example code in my template I still get the local media folder referenced?
I have watched the video several times end-to-end to make sure im not missing something.
I'm pretty sure I have correctly configured both the FileSystemProviders.config and the web.config files so that images are successfully uploaded to my S3 bucket.
You can see the picture of the dog. This was only just added and it's appeared in my S3 bucket OK.
If you view source you can see that it's being served from the media folder and not the CDN.
Would it help for me to give you a login so you can see the back end? I can send via email or tweet it to you? This is only a test site so you can't hurt it
Does this package work on a site using webforms templates?
Everything seems to work... images are getting uploaded to S3 but when using the RTE image tool the referenced image is coming from the /media folder instead of S3. Thoughts? All config values are set to true.
I have exactly the same problem as Robert. Image uploading works seamlessly but no matter how I try to position the media example code in my template I still get the local media folder referenced?
Have you watched this video?
https://youtu.be/LDYIKLFELc8
You need to call
MediaHelper.ParseMedia(" { url of image }")
You can also find the source code here:
https://github.com/AliSheikhTaheri/AST-Amazon-S3
Hope this helps
Ali
Hi Ali, thanks for responding.
I have watched the video several times end-to-end to make sure im not missing something.
I'm pretty sure I have correctly configured both the FileSystemProviders.config and the web.config files so that images are successfully uploaded to my S3 bucket.
The 3 dlls are correctly located and I even cloned the source and rebuilt using the modifications suggested by Simon in this post: https://our.umbraco.org/projects/backoffice-extensions/ast-amazon-s3/ast-amazon-s3/81639-override-rte-media-picker-urls
But it still references the 'local' media folder and not the S3 bucket.
Clearly I'm doing something wrong but I can't identify what.
here's the code from my template:
@{ Layout = null;
Do you have
useCDN
andcdnDomain
in your web.config?Yes, I think this is right?
and here's the other file (redacted a bit for obvious reasons)
and the version I am running is: Umbraco version 7.6.1 assembly: 1.0.6337.40631
all setting seems to be right.
What is the content of
image
variable in this line?are you sure image is not null?
If you don't mind can you also paste the html output for that section here so I can have a look
Ali
I've just pushed the site up to my own domain so you can see it publicly.
If you look at the standard 404 page here: http://tonythompson.co.uk/ali
You can see the picture of the dog. This was only just added and it's appeared in my S3 bucket OK.
If you view source you can see that it's being served from the media folder and not the CDN.
Would it help for me to give you a login so you can see the back end? I can send via email or tweet it to you? This is only a test site so you can't hurt it
Thanks again
It seems that image is within the RTE and in order for images to work with RTE you need to use it as follow:
OK, thanks Ali. I've moved it outside of the RTE now - just as a plain image but it's still referencing the local folder.
I'm clearly not getting the syntax right somehow so I think I need to go back over my steps and try to better understand how it all hangs together.
Appreciate your help.
is working on a reply...