File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 122122 this .dropzone .emit (" addedfile" , file);
123123 this .dropzone .emit (" thumbnail" , file, fileUrl);
124124 this .dropzone .createThumbnailFromUrl (file, fileUrl, callback, crossOrigin);
125- this .dropzone .emit (" complete" , file);
126- this .$emit (' vdropzone-file-added-manually' , file);
125+ this .dropzone .emit (" complete" , file);
127126 if ((typeof options .dontSubstractMaxFiles == ' undefined' ) || ! options .dontSubstractMaxFiles ) {
128127 this .dropzone .options [' maxFiles' ] = this .dropzone .options [' maxFiles' ] - 1 ;
129128 }
129+ if ((typeof options .addToFiles != ' undefined' ) && options .addToFiles ) {
130+ this .dropzone .files .push (file);
131+ }
132+ this .$emit (' vdropzone-file-added-manually' , file);
130133 },
131134 setOption : function (option , value ) {
132135 this .dropzone .options [option] = value
You can’t perform that action at this time.
0 commit comments