# PetscGlobusUpload
Loads a file to Globus 
## Synopsis
```
PetscErrorCode PetscGlobusUpload(MPI_Comm comm, const char access_token[], const char filename[])
```
Not collective, only the first process in the `MPI_Comm` uploads the file


## Input Parameters

- ***comm -*** MPI communicator
- ***access_token -*** obtained with `PetscGlobusAuthorize()`, pass NULL to use -globus_access_token XXX from the PETSc database
- ***filename -*** file to upload



## Options Database Key

- ***-globus_access_token XXX -*** the Globus token





## See Also
 `PetscURLShorten()`, `PetscGoogleDriveAuthorize()`, `PetscGoogleDriveRefresh()`, `PetscGlobusAuthorize()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/webclient/globus.c.html#PetscGlobusUpload">src/sys/webclient/globus.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/webclient/globus.c)


[Index of all Sys routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
