Skip to content

Commit

Permalink
add comment about uuid and isSecureContext
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasCARPi committed Jun 8, 2024
1 parent bd694f7 commit 1dc9bb6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dropzone.js
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,7 @@ export default class Dropzone extends Emitter {

addFile(file) {
file.upload = {
// note: this only works if window.isSecureContext is true, which includes localhost in http
uuid: self.crypto.randomUUID(),
progress: 0,
// Setting the total upload size to file.size for the beginning
Expand Down

0 comments on commit 1dc9bb6

Please sign in to comment.