FileSender¶
FileSender is a service that allows users to send vast amounts of data easily and securely. It is possible to send and receive data via a web-based graphical user interface (GUI) as well as via an API. These instructions show how to use both the web-based GUI and API to send and receive data using FileSender.
Using FileSender: Web-based GUI¶
Sending Data using the FileSender Web-based GUI¶
- Go to https://filesender.reannz.co.nz
- If asked, click Login and Sign-in through your Tuakiri login. You may not need to do this if you have already signed into FileSender before.
- You can then drag & drop or click to select a file to transfer or you can select an entire directory to upload to FileSender
Receiving Data using the FileSender Web-based GUI¶
- Go to your emails where you should have been sent an email from FileSender.
- Click on the Download link in the email link. This will take you to a FileSender website where you can download your files.
- You will be presented a list of the files that you can download. Click on the
icon. This will download your file to you downloands folder on your computer.
If you would like to download all files together in a tar or zip file, you can do this by clicking on the Download as single (.zip) file or the Download as single (.tar) file button.
Using the FileSender API in the Terminal¶
Sending Data using the FileSender API in the Terminal¶
Initialising your FileSender API¶
To send data to your FileSender account using the FileSender API, we first have to setup FileSender on your local machine or Mahuika. You only need to do this once.
- Go to https://filesender.reannz.co.nz
- If asked, click Login and Sign-in through your Tuakiri login. You may not need to do this if you have already signed into FileSender before.
- Click My profile at the top-right of the page.
- Near the bottom of the page under Remote authentication, click the New API secret button. This will create a new authenticator secret key.
-
In the terminal on the machine you would like to send/receive data from, type:
mkdir -p ~/.filesender -
Open the
filesender.py.inifile (e.g.nano ~/.filesender/filesender.py.inito open with the text editornano) and add the following, where you need to replace:TUAKIRI_LOGIN_EMAILwith your Tuakiri login email (This is your university or industrial email)FILESENDER_API_KEYwith the new authenticator secret key from step 4.
[system] base_url = https://filesender.reannz.co.nz/rest.php default_transfer_days_valid = 10 [user] username = TUAKIRI_LOGIN_EMAIL apikey = FILESENDER_API_KEYClose and save with
ctrl x,ctrl y,Enter
Sending Data¶
Once you have setup up your FileSender settings, you can upload files to FileSender by typing into the terminal (where you downloaded filesender.py into):
module load FileSender
filesender -p -r person-to-send-to@emailserver.edu research-data-file.txt
where:
person-to-send-to@emailserver.edu: This is the email address of the persion that you would like to send your data to. This can be any email address, not necessarily an educational email address. This can also be your own email address if you are wanting move data between your local machine and mahuika.research-data-file.txtThis is the file you would like to send. This can be any file.
You can file more options for filesender.py at https://github.com/NFAcz/filesender-python-uploader?tab=readme-ov-file#usage
Warning
This may take some time if you are uploading a big file.
You can send multiple files by tarballing the files up:
tar -cvf tarball_file.tar folder_to_tarball
To untar the tarball:
tar -xvf tarball_file.tar
Receiving Data using the FileSender API in the Terminal¶
- Go to your emails where you should have been sent an email from FileSender.
- Click on the Download link in the email link. This will take you to a FileSender website where you can download your files.
- You will be presented a list of the files that you can download. Right-click on the
icon and click Copy Link Address -
In your terminal (in either your local machine or Mahuika), type:
curl -O -J -L -R "<copied_website>"NOTE: replace
with the path you copied. Keep the double quotation "" marks as these are needed. -
You will see your file download to through your terminal.