TestFairy allows developers to attach files to sessions. As a developer, you can upload up to five files to a given session, with a maximum size of 15MB per file. Files must be local to the device.

Be sure to check the device logs if there were any problems uploading files. Only file extensions .jpeg, .jpg, .png, .txt, and .sqlite are supported.

Syntax

To attach a file to a session, all you need to do is call the static instance method attachFile in the TestFairy class:

File file = ...
TestFairy.attachFile(file);

Code Example

File file = new File("/path/to/file.txt");
TestFairy.attachFile(file);
      

Syntax

To attach a file to a session, all you need to do is call the static instance method attachFile in the TestFairy class:

NSURL *file = ...
[TestFairy attachFile:file];

Code Example

NSURL *file = [NSURL fileURLWithPath:"/path/to/file.txt"];
[TestFairy attachFile:file];
            

Last updated on 2023-05-23