anchor.diff:  
   include::{snippets}/delete-file/http-response.adoc[]
   
  -== Globus file uploading
  +== Method#2 : Globus file uploading
   
  -It is also possible to upload files to DSP via https://www.globus.org/[Globus]. Due to infrastructure limitations
  -file uploading through tus.io may seem slow, especially with large files. At EBI, Globus is among a few other
  -supported technologies that allow for high speed file transfers. In order to use this for uploading files to DSP,
  -users will need to register an account with Globus. Please see the *For researchers* section in the
  +In order to upload data this way, users will need to register an account with Globus. Please see the *For researchers* section in the
   https://www.globus.org/get-started[getting started] guide for more information.
   
  -=== Requesting Globus share
  +== Requesting Globus share
   
   To begin uploading files, users will first need to request a Globus share. A share is basically a dedicated folder that
   DSP creates for the requesting user that they can upload their files into. The following REST API is used for requesting
  
positive.code: 
  This endpoint returns a web link that can be opened in the browser to access the Globus file manager. This
  https://docs.globus.org/how-to/get-started/#the_file_manager[guide] explains the transfer process in detail. This link then also
  becomes available under <<ref_submissions.adoc#_get_a_submission,submission details>> should the users
  wish to access it again later.
  
  === Notifying DSP about uploaded files
  
  Since Globus is an external third-party system, it is difficult for DSP to know when a file has finished uploading. It is
  therefore the responsibility of the user to let DSP know whenever that happens. The following REST API
  acts as a way of sending notification to DSP about such files:
  
  === Request
  include::{snippets}/notify-globus-uploadedfiles/curl-request.adoc[]
  
negative.code: <<ref_file_upload.adoc#_how_to_get_a_list_of_files_by_a_given_submission,files>> APIs to see if DSP was able to locate
  the files or not.
  
  NOTE: Calling the notify endpoint will remove the files from user's Globus directory and moves them to an internal staging area.
  This prevents the files from getting deleted by the users from Globus UI during or after data validation.
  Users are hereby advised not to get confused if they notice files disappearing from their Globus directory. If in doubt, use
  DSP's files API to see whether or not it appears in the list of files DSP has identified for a particular submission.
  
  == Share removal upon completion
  
  DSP automatically deletes the share as soon as it's last registered submission gets completed. If there are any files
  present in the directory at that time then they are deleted as well.
  
  NOTE: Users are advised to start uploading files after they have registered their submission by calling the share request endpoint.
  
  == Globus CLI
  
  Globus also offers a https://docs.globus.org/cli/[CLI application] that people can use for managing transfers in
  their automated workflows. This application works with Globus endpoints only. A Globus share is also an endpoint and
  therefore, has an endpoint ID. That ID is present as the value of the query param *origin_id* in the share link that
  is returned by DSP:
  
  \https://app.globus.org/file-manager?*origin_id=<share-endpoint-id>*
  