Last modified by Dennis Segebarth on 2024/10/02 18:38

From version 1.5
edited by Susan Evans
on 2023/07/10 22:20
Change comment: (Autosaved)
To version 1.6
edited by Susan Evans
on 2023/07/10 22:22
Change comment: (Autosaved)

Summary

Details

Page properties
Content
... ... @@ -511,10 +511,85 @@
511 511  
512 512  In order to upload a file (or folder) to a destination directory in a Project's Core, core must be specified as corresponding zone {{code}}(-z core){{/code}} and you will be required to provide a message to that should describe the files` content and why you are uploading it directly into the Core {{code}}(-m "sample message"){{/code}}. Moreover, you will be reminded about the Terms of Use of the Platform and additional considerations regarding the direct upload of data into the Core zone, and are prompted to confirm your intention to proceed with the upload by entering “y” or “Yes”:
513 513  
514 +{{code language="none"}}
515 +$ pilotcli file upload ./sample_folder/sample_file2 -p cli/admin -z core -m "sample message"
516 +You are about to transfer data directly to the Core! In accordance with the Terms of Use, please confirm that you
517 +have made your best efforts to pseudonymize or anonymize the data and that you have the legal authority to transfer and make this
518 +data available for dissemination and use within the Platform.To review the Terms of Use, please the Portal. If you
519 +need to process the data to remove sensitive identifiers, please cancel this transfer and upload the data to the Green Room to
520 +perform these actions.
521 +To cancel this transfer, enter [n/No]
522 +To confirm and proceed with the data transfer, enter [y/Yes]
523 + [y/N]: y
524 +Starting upload of: ./sample_folder/sample_file2
525 +Pre-upload complete.
526 +uploader: admin container_id: 18061 total_size: 1048576 total_chunks: 1 uniq_identifier: fa807a0f-ceb0-4fff-9c9e-563bdcbb309f-1627498851 resumable_relative_path admin/
527 +
528 +Upload job is finalizing, please wait...
529 +Upload job complete.
530 +All files uploaded successfully.
531 +{{/code}}
514 514  
533 +Upload a folder to Project Green Room
515 515  
535 +{{code language="none"}}
536 +$ pilotcli file upload ./sample_folder/example_folder -p cli/admin
537 +Starting upload of: ./sample_folder/example_folder
538 +Current version does not support folder tagging, any selected tags will be ignored
539 +Pre-upload complete.
540 +uploader: admin container_id: 18061 total_size: 1048576 total_chunks: 1 uniq_identifier: 4f0eee2e-70f4-4b03-9e72-040544ec7d3a-1627498907 resumable_relative_path admin/example_folder/
541 +
542 +Starting finalization...
543 +uploader: admin container_id: 18061 total_size: 1048576 total_chunks: 1 uniq_identifier: 41ec70e2-0859-4aba-9009-06e700c7c79e-1627498907 resumable_relative_path admin/example_folder/
544 +
545 +Starting finalization...
546 +uploader: admin container_id: 18061 total_size: 1048576 total_chunks: 1 uniq_identifier: 28454c51-ec9a-4dc5-ab3c-0f7e80e3050d-1627498907 resumable_relative_path admin/example_folder/
547 +
548 +Upload job is finalizing, please wait...
549 +Upload job complete.
550 +All files uploaded successfully.
551 +{{/code}}
516 516  
553 +Upload file to existing folder in Green Room
517 517  
555 +* Specify a target folder to upload files by inputting folder name after the Project code separated by the '/'.
556 +
557 +{{code language="none"}}
558 +$ pilotcli file upload ./sample_folder/sample_file5 -p cli/admin/example_folder
559 +Starting upload of: ./sample_folder/sample_file5
560 +Pre-upload complete.
561 +uploader: admin container_id: 18061 total_size: 1048576 total_chunks: 1 uniq_identifier: 7ef58005-d408-4ad9-a741-fa938f58e67f-1627498977 resumable_relative_path admin/example_folder/
562 +
563 +Upload job is finalizing, please wait...
564 +Upload job complete.
565 +All files uploaded successfully.
566 +{{/code}}
567 +
568 +Upload folder as zip to a specified directory of a Project's Green Room by adding the ~-~-zip option.
569 +
570 +* The specified folder will then be compressed as a zip file and subsequently be uploaded to the specified destination. Once the upload is completed, the compressed zip file will be removed from the directory. Note: pilotcli must have the permission to create and delete zip files in the corresponding directory of your local machine:
571 +
572 +{{code language="none"}}
573 +$ pilotcli file upload ./sample_folder/example_folder -p cli/admin --zip
574 +Starting upload of: ./sample_folder/example_folder
575 +Started zipping files.
576 +Pre-upload complete.
577 +uploader: admin container_id: 18061 total_size: 3595 total_chunks: 1 uniq_identifier: 61a729ce-cdd6-4a87-82b5-3f8ea63e6c4a-1627499012 resumable_relative_path admin/
578 +
579 +Upload job is finalizing, please wait...
580 +Upload job complete.
581 +All files uploaded successfully.
582 +{{/code}}
583 +
584 +Upload a file with tags and/or attributes.
585 +
586 +* When entering the upload command, the user can add a maximum of ten tags to the file. For example, in order to add “sample_tag1” and “sample_tag2” to your file, simply add {{code}}-t sample_tag1{{/code}} {{code}}-t sample_tag2{{/code}} to the command (see example below using {{code}}tag1{{/code}} and {{code}}tag2{{/code}} as tags).
587 +* In addition, you can also use attribute templates for a more enriched annotation of your files. Please note, that the corresponding attribute template file needs to be edited & saved prior to uploading. To get the blank template, see the **attribute-export** instructions above for more details. To attach a attribute JSON-file to your file upon uploading, use -a cli_Manifest1_template.json, where “cli_Manifest1_template.json" points to the location of the attributes JSON-file on your local machine.
588 +* Upon uploading, pilotcli will also validate the content of the attached attribute JSON-file. Whenever a template is invalid, including missing non-optional fields, non-existing choice in multiple choice attribute, exceeding length text field and so on, pilotcli will raise error to user and user must update the attribute template and upload again:
589 +
590 +
591 +
592 +
518 518  ----
519 519  
520 520  -