A symfony bundle to handle multiple upload ways on your REST API.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
DependencyInjection
Entity
Exception
Model
Processor
Request
Resources
Storage
Strategy
Tests
Upload
Voter
.gitignore
.travis.yml
README.md
SRIORestUploadBundle.php
composer.json
composer.lock
phpunit.xml.dist
test.sh

README.md

SRIORestUploadBundle

Build Status

This bundle provide a simple ways to handle uploads on the server side.

Currently, it supports the simple, form-data, multipart and resumable ways.

Getting started

Using Gaufrette as storage layer, you can handle file uploads and store files on many places such as a local file system, an Amazon S3 bucket, ...

Testing

Tests are run with PHPUnit. Once you installed dependencies with composer, then:

  • Create a database, allow access to a user, and set configuration in Tests/Fixtures/App/app/config/parameters.yml file
  • Create the database schema for the test environment
    php Tests/Fixtures/App/app/console doctrine:schema:update --force --env=test
  • Run PHPUnit
    phpunit