vutoan266 / react-images-uploading

The simple images uploader applied Render Props pattern that allows you to fully control UI component and behaviors.
https://github.com/vutoan266/react-images-uploading
MIT License
320 stars 52 forks source link

Empty dataUrl String after upload #163

Open knowrahman opened 5 months ago

knowrahman commented 5 months ago
<ImageUploading
            multiple
            value={images}
            onChange={onChange}
            maxNumber={appConfig.fileUploader.maxNoOfFiles}
            dataURLKey="data_url"
            acceptType={allowedFileTypes}
            onError={onError}
            allowNonImageType
          >
            {({
              imageList,
              onImageUpload,
              onImageUpdate,
              onImageRemove,
              onImageRemoveAll,
              isDragging,
              dragProps,
            }) => (
            ....
            )}
          </ImageUploading>
      When I upload an MP4 Video file of a size 500MB the data_url it results in an empty string with no file object,
      [{"data_url":"","file":{}}]
       the same works fine for the smaller file sizes

      Can anyone please help me in resolving this issue 

     Thanks in advance :)