npm @navjobs/upload 0.1.4

latest releases: 3.2.0, 3.1.3, 3.1.2...
7 years ago

Return files object from uploader, useful to display things differently before clicking startUpload

<Uploader
      request={{
        url: 'http://test.dev',
      }}
      uploadOnSelection={false}
    >
      {({ onFiles, files }) => {
        if (files) <div>Files selected, but upload not started!</div>
        return (
          <div>
            <UploadField onFiles={onFiles}>
              <div>
                Click here and select a file!
              </div>
            </UploadField>
          </div>
        );
      }}
    </Uploader>

Don't miss a new upload release

NewReleases is sending notifications on new releases.