Alia

Alia

Upload image using Waffle

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.

Most Liked

NobbZ

NobbZ

I can not find FileUploader.FileImage.url/2 in the waffle docs.

Is this funtion perhaps part of your application?

Alia

Alia

@NobbZ just review this document.

NobbZ

NobbZ

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.

Last Post!

crockwave

crockwave

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

Where Next?

Popular in Questions Top

vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New

Other popular topics Top

JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" =&gt; #BSON.ObjectId&lt;58eb1a7a9ad169198c3dXXXX&gt;, "email" =&gt; ...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

We're in Beta

About us Mission Statement