Skip to content

Commit 9e4aeab

Browse files
authored
Update README.md
1 parent 382e75f commit 9e4aeab

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,16 @@ This channel will use your InterFAX username and password. To use the channel, a
4545
'password' => env('INTERFAX_PASSWORD'),
4646
'pci' => env('INTERFAX_PCI', false),
4747
'interval' => 15,
48+
'chunk_size' => null,
4849
],
4950
...
5051
```
5152

5253
This will load your InterFAX credentials from the `.env` file. If your requests must be PCI-DSS-compliant, set `INTERFAX_PCI=true` in your `.env` file.
5354

54-
The `services.interfax.interval` setting is the polling interval, in seconds, for a fax if it is set to check the status until it is complete. This is optional and will default to 15 if left empty. The interval has a minimum of 10 seconds, as the outbound service in the API has a maximum freqncy of 6 requests per minute and can return errors if polled more frequently.
55+
The `services.interfax.interval` configuration setting is the polling interval, in seconds, for a fax if it is set to check the status until it is complete. This is optional and will default to 15 if left empty. The interval has a minimum of 10 seconds, as the outbound service in the API has a maximum freqncy of 6 requests per minute and can return errors if polled more frequently.
56+
57+
The `services.interfax.chunk_size` configuration setting is the maximum file size before the InterFAX core SDK starts chunking files. The default chunk size is 1048576. When chunking, an `\Interfax\Document` object is created, but the `/outbound/documents` endpoint does not exist for the PCI-DSS-compliant API. If `services.interfax.pci` is set to `true`, it is recommended to increase the chunk size to avoid 404 errors.
5558

5659
## Usage
5760

@@ -108,8 +111,8 @@ public function routeNotificationForInterfax($notification)
108111
### Available Message methods
109112

110113
`file(string $file)` : Accepts the full path to a single file (full list of supported file types [found here](https://www.interfax.net/en/help/supported_file_types)).
111-
`files(array $array)` : Accepts an array of file paths.
112-
`stream(Filestream $stream, string $name)` : Accepts a file stream.
114+
`files(array $array)` : Accepts an array of file paths. If overriding the default chunk_size in the config and using an `\Interfax\File` object in the array, use `\NotificationChannels\Interfax\InterfaxFile` instead to automatically set the file's chunk size on initialization.
115+
`stream(Filestream $stream, string $name)` : Accepts a file stream.
113116
`addMetadata(array $data)`: Add metadata for logging purposes in case of an error.
114117

115118
## Changelog
@@ -137,4 +140,4 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
137140

138141
## License
139142

140-
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
143+
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

0 commit comments

Comments
 (0)