Releases: adopted-ember-addons/ember-file-upload
2.0.0-beta.38
tldr; Silence errors when out-of-order drag events are sent
2.0.0-beta.37
tldr; You can use withCredentials
to allow cookies and credentials to be sent / received during uploads.
2.0.0-beta.36
tldr; No more pesky files sticking around after you've removed them from the queue!
2.0.0-beta.35
tldr; This fixes errors in {{file-dropzone}}
with dragging and dropping files from web pages and when events may be called on destroyed objects.
This also contains a bunch of commits involving the start of a documentation site for the addon.
Currently, there is no way to disable dragging from web pages. This feature will be able to be disabled in the future, but currently, you'll need to remove these files by looking at the source
of the file.
Courtesy of @dkorenblyum for fixing the isDestroyed
bug.
2.0.0-beta.34
tldr; ember-file-upload
now uses a single event handler for drag and drop events.
What does this mean for me?
dragenter
anddragleave
events are now more stable! No longer will you have active dropzones lingering!- The addon uses less memory, since uses a single event listener for the whole document.
- When users drop a file on the page, missing a dropzone, the page won't redirect to the image / video / pdf. Instead the file will silently go into oblivion. If this isn't something you like, let me know in an issue!
- If a dropzone is added with the same
id
as another, your app will go 💣
2.0.0-beta.33
tldr; Files now have a source
attribute which indicates if a file was created using Drag and Drop, the file browser, a web page, a blob, or data URL.
This release focuses on users that would like to track how users are interacting with uploads in their apps. To help keep track of these interactions, I've baked this into the API. When processing a file, you'll have a new source
attribute that allows you to determine the source. The source property will be one of:
drag-and-drop
browse
web
blob
data-url
Also! When constructing files by hand, you're able to identify the source of them by passing a second argument:
import File from 'ember-file-upload/file';
let file = File.fromDataUrl('data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAIC\
TAEAOw==', 'app');
console.log(file.source); // 'app'
2.0.0-beta.32
This release has no changes to users other than a ✅ for the build.
2.0.0-beta.31
tldr; Promises are labelled so you can figure out what ember-file-upload
is doing in the Ember Inspector
2.0.0-beta.30
tldr; When you provide a selector that doesn't exist for the upload
test helper, it will let you know. 💣
2.0.0-beta.29
tldr; This fixes the upload
helper used to trigger uploads in tests