The bundle provides a way to upload base64 file transparently through the Symfony2 form component. It
adds a new form option named base64
on the file type which, when enabled, will convert you base64
input into a regular file. It is especially useful when you're using the FOSRestBundle.
For example, the following payload will be handled by the bundle:
{
"field": {
"name": "filename.png",
"value": "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABh0lEQVQ4T23TO8iPYR..."
}
}
The bundle is fully unit tested by PHPUnit with a code coverage close to 100%. To execute the test suite, check the travis configuration.
We love contributors! Ivory is an open source project. If you'd like to contribute, feel free to propose a PR! You can follow the CONTRIBUTING file which will explain you how to set up the project.
The Ivory Base64 File Bundle is under the MIT license. For the full copyright and license information, please read the LICENSE file that was distributed with this source code.