---
description: This section contains the necessary methods to submit file
---

# Submit file

The following method uploads a file to our platform. This file will be transformed, compressed and then verified by our API.

```java
BiometridOn.getInstance().submitFile(String process_token, String path, Context context);
```

## Callback params

| submitFiles Callback | Callback                     |
| -------------------- | ---------------------------- |
| Boolean status       | Status of request            |
| StepType previous    | Previous step                |
| StepType next        | Next step                    |
| JsonObject json      | JsonObject data from request |
| Errors e             | Errors object                |

## Implementation example

```java
public class ExampleActivity extends Activity implements OnProcessCallback {
    private String file_path;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_example);

        BiometridOn.getInstance().submitFile("PROCESS_ID", String path, this);
    }

    @Override
    public void onDataSubmissionCallback(Boolean status, StepType previous, StepType next, JsonObject json, Errors e) {

    } 

...
}
```
