These are chat archives for mirumee/saleor

13th
Apr 2019
Gilbert John
@2invisible_gitlab
Apr 13 11:09
my saleor does not load images from AWS bucket's media folder,
AWS_ACCESS_KEY_ID = 'xxxxxxxx'
AWS_SECRET_ACCESS_KEY ='xxxxxxx'
AWS_MEDIA_BUCKET_NAME = 'mediahome'
AWS_MEDIA_CUSTOM_DOMAIN = '%s.s3.amazonaws.com' % AWS_MEDIA_BUCKET_NAME
AWS_QUERYSTRING_AUTH = False
AWS_LOCATION = 'static'
AWS_DEFAULT_ACL = None
NyanKiyoshi
@NyanKiyoshi
Apr 13 11:11
Hi, can tell us more of what ‘failed’?
Gilbert John
@2invisible_gitlab
Apr 13 11:16
@NyanKiyoshi when I upload an image to the product it gets uploaded well but nothing display.
NyanKiyoshi
@NyanKiyoshi
Apr 13 11:18
That should be an issue with the bucket. Check the browser’s developer console in the network tab
Gilbert John
@2invisible_gitlab
Apr 13 11:32
@NyanKiyoshi no any error or warning, what should i do?
Ashish Patil
@ashishnitinpatil
Apr 13 11:37
@2invisible_gitlab check the status code for the network request for that specific image, that'll tell you things.
Ashish Patil
@ashishnitinpatil
Apr 13 11:43
If AWS_QUERYSTRING_AUTH then probably bucket settings aren't allowing public access for that media file, so check settings as well.
Gilbert John
@2invisible_gitlab
Apr 13 12:15
@ashishnitinpatil @NyanKiyoshi Network status code: 200, I set AWS_QUERYSTRING_AUTH=True does not fix my problem
Ashish Patil
@ashishnitinpatil
Apr 13 12:16
If status code is 200, it means the file was successfully downloaded.
You can hover over the request, or open the same link in a new tab to check if it's the correct image. If not, you have some other upload issues.
Gilbert John
@2invisible_gitlab
Apr 13 12:25
@ashishnitinpatil I get this mdb Request URL: https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.6.0/css/mdb.min.css
Ashish Patil
@ashishnitinpatil
Apr 13 12:30
Then you're looking at a css request, not the request to your image file.