Skip to main content
File upload source configuration with drag-and-drop area

Overview

The File Upload source lets you import data by uploading a file directly from your computer. The platform parses the file and extracts fields for mapping.

Supported File Formats

The platform automatically detects the file format. The following formats are supported:
Compressed files (.gz, .zip) are automatically decompressed before parsing.
PGP-encrypted files cannot be uploaded directly via the File Upload source because format detection runs at upload time, before a decryption key can be provided. To import PGP-encrypted files, use URL, FTP/SFTP, S3, or GCS instead. See the PGP Decryption guide for details.

Upload via the UI

The easiest way to create a file-upload datasource is through the platform interface.
1

Create a new datasource

Navigate to DataHub and click Create datasource.
2

Select File Upload as the source type

In the source configuration step, choose File Upload.
3

Upload your file

Drag and drop your file into the upload area, or click to open the file browser and select a file from your computer. The platform automatically detects the file format and text encoding.
4

Configure field mapping

Once the file is parsed, fields are extracted and displayed. Configure the field mapping to define how data should be imported.
5

Validate and publish

Review your configuration and click Validate to publish the datasource. Data ingestion starts immediately.
To update data later, edit the datasource and re-upload a new file using the same drag-and-drop area.

Upload via the API

You can also create and update file-upload datasources programmatically using the Reelevant API. This is a multi-step process:
1

Authenticate

Obtain an access token via the authentication endpoint:
Use the returned access_token in subsequent requests.
2

Create a datasource

Create a new datasource of type worker:
The response contains the datasource id (a 24-character hex string) which is needed for subsequent steps.
3

Upload the file

Upload your data file using the upload endpoint. The file must be sent as multipart/form-data:
The response returns the file source options (including bucket, path, format, and textEncoding) that you need for the next step.
4

Configure sources (configure_sources step)

Submit the configure_sources step with the file options returned by the upload:
5

Configure fields (configure_fields step)

After configuring sources, configure the field mapping. Use the fields extracted from the sample to define which fields to import:
Use GET https://api.reelevant.com/v2/datasources/${datasource_id}/steps to retrieve the current step state including the extracted fields map, which you can then modify and submit.
6

Validate and publish

Submit the validate step to publish the datasource and trigger data ingestion:
To update data on an existing datasource, repeat from step 3 (upload a new file) and then call the promote endpoint to trigger re-ingestion:

Update via FTP / SFTP

When a file-upload datasource is created, Reelevant automatically generates FTP and SFTP credentials. Your systems can push updated files to the hosted endpoint, and the datasource will automatically re-process the latest file.

Retrieving Credentials

1

Get the upload password

Retrieve the SFTP/FTP password for your datasource via the API:
The response contains the password field.
2

Note the connection details

Use the following connection parameters:

SFTP with SSH Key-Pair Authentication

Instead of using a password, you can configure your datasource to authenticate via an SSH key pair. Once a public key is configured, password authentication is disabled for that datasource — only key-based auth will work.
1

Generate an SSH key pair

If you don’t already have one, generate a key pair:
This creates sftp-key (private key) and sftp-key.pub (public key).
2

Register the public key on the datasource

Use the patch step to set the sftpPublicKey field on your datasource:
3

Connect using your private key

Once a public key is registered, password authentication is disabled for that datasource. Remove the sftpPublicKey (set it to an empty string via the patch step) to re-enable password auth.

Pushing a File

Once you have credentials (password or SSH key), upload a file using any standard FTP or SFTP client:
Or using an SFTP library/client, connect with:
  • Host: ftp.reelevant.com
  • Port: 8022
  • Username: <datasource_id>
  • Password: <password from API>
After the file is uploaded, the datasource automatically re-processes the new file and updates the data.
The FTP/SFTP endpoint only accepts file uploads (STOR / write operations). You cannot delete or rename files on the server.
Use SFTP when security is a concern — it encrypts the connection and all data transfer. FTP with TLS (FTPS) is also supported.
File upload creates an initial import. To keep data updated automatically on a schedule, consider using a URL, FTP/SFTP, or cloud storage source instead.