founderlab / react-dropzone-s3-uploader

Drag and drop s3 file uploader via react-dropzone + react-s3-uploader
MIT License
161 stars 82 forks source link

How to add Authentication to header ? #70

Open ameenmattar opened 4 years ago

ameenmattar commented 4 years ago

How can I add authorization to the header as Authorization: "token 1341sfsdf23rt..."

import DropzoneS3Uploader from "react-dropzone-s3-uploader";

   const uploadOptions = {
    server:'http://192.168.1.205/,
    signingUrl: signedUrl,
    signingUrlQueryParams: { uploadType: "avatar" }
  };

<DropzoneS3Uploader
       onFinish={handleFinishedUpload}
        upload={uploadOptions}
        s3Url={s3Url}
        filename={filename}
        onProgress={onProgress}
      >