files-ui/files-ui-react

status aborted for successfull upload

jgrexa opened this issue · 0 comments

jgrexa commented

Describe the bug
Getting status "Upload aborted" for successfull upload, when server response is empty.

To Reproduce
Steps to reproduce the behavior:
Using Dropzone in following way:

<Dropzone
  onChange={updateFiles}
  value={files}
  autoClean
  uploadConfig={{
    urlFromExtFile: (extFile) => replaceUrl(link, extFile),
    method: "PUT",
  }}
  actionButtons={{
    position: "after",
    uploadButton: {},
    abortButton: {},
    cleanButton: {},
    deleteButton: {},
  }}
>
  {files.map((file: ExtFile) => (
    <FileMosaic key={file.id} {...file} onDelete={removeFile} info />
  ))}
</Dropzone>

Expected behavior
Upload should be successfull for status 201 / created and no response.

Screenshots
Screenshot 2024-08-06 at 8 58 44

Desktop (please complete the following information):

  • OS: [macOS]
  • Browser [edge]
  • Version [127]

Additional context