Hello,

I just managed to get the media library working with boto3, and there's one 
last issue I can't seem to resolve.

When viewing uploads in the filebrowser, thumbnails fail to load. 
Inspecting the image tags reveals that they're being rendered with the 
'src' attribute set to only the upload's path on S3. Ideally I'd want the 
src to also include the value set in 'MEDIA_URL'.

I took a look at the template for thumbnails[1] and a look at how the 
template is rendered [1][2] and, correct me if I'm wrong - but shouldn't 
the value 'MEDIA_URL' be referred to using 'settings_var.MEDIA_URL'?

[1] 
https://github.com/stephenmcd/filebrowser-safe/blob/ba6f96fe310387b88afb9a17ef4309cb7f987663/filebrowser_safe/templates/filebrowser/include/filelisting.html#L75
[2] 
https://github.com/stephenmcd/filebrowser-safe/blob/ba6f96fe310387b88afb9a17ef4309cb7f987663/filebrowser_safe/views.py#L180-L191
 

[3] 
https://github.com/stephenmcd/filebrowser-safe/blob/ba6f96fe310387b88afb9a17ef4309cb7f987663/filebrowser_safe/functions.py#L147-L170
 

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to