Alia 1 Hey Everyone!
I am here with a new query in my mind. Anyone can tell that what’s the meaning of that in waffle.
<td> <%= img_tag FileUploader.FileImage.url({photo.picture, photo}, signed: true) %> </td>
I just want to know about photo.picture, photo params in the url.
1 Like
NobbZ 2 I can not find FileUploader.FileImage.url/2 in the waffle docs.
Is this funtion perhaps part of your application?
1 Like
Alia 3 @NobbZ just review this document.
1 Like
NobbZ 4 Okay, thanks to that article I was able to actually look it up actually.
The tuple is a “definition” which seems to consist of a name and a scope.
Though I have not really found an explanation, just usage by example.
1 Like
This solved my problem in production by adding a second static Plug in endpoint.ex, for the Waffle local storage integration
plug Plug.Static, at: "/uploads", from: Path.expand('./uploads'), gzip: false