Net.Science release for File Uploader 20th Nov 2023 - NSSAC/CINES GitHub Wiki

File Uploader code is committed to master-beta branch. Branch Name: https://github.com/NSSAC/CINES/tree/master-beta

File Uploader contains the following features:

GIT ID 352: File Uploader Enhancement

  • The file upload popup would be shown when user clicks on the “Upload files” icon displayed on the File Manager page.

Below details would be shown on click of Upload files • Upload Files header • CHOOSE OR DROP FILE button. • CLOSE button

  • Once user selects the files, the popup contains the below screens

First screen

 • The user would be able to select the files for upload

 • User would be able to drag and drop the file, which he/she wants to upload

 • Below columns would be shown once the user select the file for an upload

           	Name

           	Type

           	Size

 • Dropdown would be shown against each file name to select a type of a file

 • User would be able to remove the selected file by clicking of “-“ icon, which is shown against each file at the right side.

 • “NEXT” and “CLOSE” buttons would be shown at the bottom right corner.

 • By default “NEXT” button is disabled, the “NEXT” button would get enabled once the user selects the file type for selected files.

 • User would get redirected to the second page of the popup on click of “NEXT” button.

 • User can cancel the upload by clicking on a “CLOSE” button.

Second screen

 • File name and its type would be shown on the top of the popup page.

   has_headers:

        • The “has_header” property is shown with true and false options.
          It is mandatory field.

        • When user selects true option for “has_headers”, then user does not requires to fill any additional properties.

        • When user selects the false option for “has_headers”, then user needs to fill the properties which would be rendered i.e. column_header

        • User would be able to provide multiple “column_headers” for one file and after successfully uploading, that specified “column_headers” values would be shown in the metadata of that file.
          Note - User would need to click on Add Another button to add multiple column headers.

 • Error messages would be thrown if the user clicks on the “NEXT” button without filling the required parameters.

 • Below buttons are shown and all buttons would be enabled by default

           	PREVIOUS
           	NEXT
           	CLOSE

 • On clicking on “PREVIOUS” button, user would be re-directed to the first screen.

 • On clicking on “NEXT” button, user would be re-directed to the third screen.

 • On clicking on “CLOSE” button, user can cancel the uploading.

Note – this screen is applicable only when type: csv2 is selected.

Third screen (Summary page)

 • All the selected files would be listed.

 • User can remove the selected file by clicking on icon “-”, which would be shown against each file.

 • Below buttons would be shown and all buttons would be enabled by default

           	PREVIOUS
           	UPLOAD
           	CLOSE

 • On clicking on “PREVIOUS” button, user would be redirected to the second screen.

 • On clicking on “UPLOAD” button, the listed files would be uploaded and a successful toaster would be shown.

 • On clicking on “CLOSE” button, user can cancel the uploading.

Known issues: When user uploads the file, error toaster “Upload failed for : Conflict” is shown and file is uploaded successfully.

⚠️ **GitHub.com Fallback** ⚠️