Skip to content

Cannot display images correctly using manuallyAddFile()  #474

Open
@NeoTianHow

Description

@NeoTianHow

I am trying to display images using the manuallyAddFile() method. However, I could not display the images for some reason. Here are my codes: Do Note that I am passing in a base64URL Is that the cause of this issue?

 dropOptions: {
        url: "https://httpbin.org/post",
        acceptedFiles: "image/*",
        // maxFiles: 1,
        addRemoveLinks: true,
        autoProcessQueue: false,
        thumbnailWidth: 160,
        thumbnailHeight: 160
      }

setTimeout(() => {
          this.form.varient.files.forEach(eachFile => {
            var file = {
              size: eachFile.size,
              name: eachFile.name,
              type: eachFile.type
            };
            this.$refs.myVueDropzone.manuallyAddFile(file, eachFile.dataURL);
          });
        }, 0);

image

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions