| Vulnerabilities | |||||
|---|---|---|---|---|---|
| Version | Suggest | Low | Medium | High | Critical |
| 1.1.10 | 0 | 0 | 0 | 0 | 0 |
| 1.1.9 | 0 | 0 | 0 | 0 | 0 |
| 1.1.8 | 0 | 0 | 0 | 0 | 0 |
| 1.1.7 | 0 | 0 | 0 | 0 | 0 |
| 1.1.6 | 0 | 0 | 0 | 0 | 0 |
| 1.1.5 | 0 | 0 | 0 | 0 | 0 |
| 1.1.4 | 0 | 0 | 0 | 0 | 0 |
| 1.1.3 | 0 | 0 | 0 | 0 | 0 |
| 1.1.2 | 0 | 0 | 0 | 0 | 0 |
| 1.1.1 | 0 | 0 | 0 | 0 | 0 |
| 1.1.0 | 0 | 0 | 0 | 0 | 0 |
| 1.0.1 | 0 | 0 | 0 | 0 | 0 |
| 1.0.0 | 0 | 0 | 0 | 0 | 0 |
| 0.0.4 | 0 | 0 | 0 | 0 | 0 |
| 0.0.3 | 0 | 0 | 0 | 0 | 0 |
| 0.0.2 | 0 | 0 | 0 | 0 | 0 |
| 0.0.1 | 0 | 0 | 0 | 0 | 0 |
1.1.10 - This version is safe to use because it has no known security vulnerabilities at this time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform
Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.
Apache-2.0 - Apache License 2.0Waffle is a flexible file upload library for Elixir with straightforward integrations for Amazon S3 and ImageMagick.
Presentation at ElixirConf · Thinking Elixir Podcast 80
Already using Waffle in your org? I'd love to learn more. Let's have a chat or just send me an email.
You want to apply file transformations, manage access rules, save files, or process files asynchronously.
Add the :waffle dependency to mix.exs.
mix.exs
{:waffle, "== 2.0.0-rc.1"},
{:waffle_ecto, "~> 0.0"}Configure file storage
config :waffle, storage: Waffle.Storage.LocalRead more about storage configuration and the supported adapters (including S3).
Create an uploader module with mix waffle.g avatar
defmodule MyApp.Avatar do
use Waffle.Definition
use Waffle.Ecto.Definition
def storage_dir(_version, {_file, user}) do
"users/#{user.id}/avatar/"
end
endUpdate the user schema
schema "users" do
field :avatar, Avatar.Type
endCast the file payload with a changeset
changeset
|> cast_attachments(
params,
[:avatar],
allow_paths: true,
allow_urls: true
)Read more about Ecto integration in the WaffleEcto documentation. WaffleEcto supports changeset integration and versioned URLs for cache busting.
This library was forked from Arc at version v0.11.0. Special thanks to Sean Stavropoulos (@stavro) for creating Arc.
Copyright 2019 Boris Kuznetsov me@achempion.com
Copyright 2015 Sean Stavropoulos
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.