Thanks Jason, this was the exact issue and now I am able to fix this by 
using below loc-

s3_key_name = posixpath.join(settings.MEDIA_FILES_LOCATION, 'logos', logo_name)


On Monday, June 18, 2018 at 5:04:24 PM UTC+5:30, Jason wrote:
>
> I think the issue is s3_key_name
>
> S3 is *not* a file based structure, it is simply a key-value object 
> store.  Much like a python dictionary.  However, there are some 
> abstractions to mimic folders and paths with S3, and that's indicated by 
> using / in the key name.  Your key name is using slashes in the other 
> direction, which aren't processed by S3 as folder names.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d001420a-68a1-431e-9663-d738ac09e885%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to