Skip to content

Mulit-upload - How do I see the data in the File obj? #612

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
Ibabalola opened this issue Mar 27, 2024 · 1 comment · Fixed by #613
Closed

Mulit-upload - How do I see the data in the File obj? #612

Ibabalola opened this issue Mar 27, 2024 · 1 comment · Fixed by #613
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Ibabalola
Copy link
Contributor

Ibabalola commented Mar 27, 2024

Describe the bug
How do I see the data in the File obj... where do you hide it?
https://main--6069a6f47f4b9f002171f8e1.chromatic.com/?path=/docs/dcxlibrary-form-multiupload-documentation--docs

Another developer who took over this bit could also not see the array of the multi upload... it comes back as empty?

<MultiUpload
       label="Label"
        name="name"
        acceptedFormats=".doc, .pdf"
        className="file-upload"
        error={{
          text: Error,
          className: "govuk-error-message",
          id: "error-impact-assessment",
          visuallyHiddenText: {
            text: "visuallyHiddenText",
            className: "govuk-visually-hidden",
          },
        }}
        hint={{
          text: "Text",
          className: "govuk-hint",
        }}
        id="impact_assessment"
        inputProperties={{
          className: "govuk-file-upload",
        }}
        labelProperties={{
          className: "govuk-heading-m",
        }}
        multiple
        onChange={(event) => onChangeHandler("impact-assessment", event)}
/>

const onChangeHandler = (id, files) => {
        
   // don't see all the files?
  
 }
@Ibabalola Ibabalola added the bug Something isn't working label Mar 27, 2024
@Ibabalola Ibabalola added this to the 0.8.1 milestone Mar 27, 2024
@Ibabalola Ibabalola self-assigned this Mar 27, 2024
@Ibabalola Ibabalola linked a pull request Mar 27, 2024 that will close this issue
@daniele-zurico
Copy link
Contributor

close by #613

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants