Developed with love by KnpLabs Hire us for your project!
268

OneupUploaderBundle

by 1up-lab

This Symfony2 bundle provides a server implementation for handling single and multiple file uploads using either FineUploader, jQuery File Uploader, YUI3...

OneupUploaderBundle

The OneupUploaderBundle for Symfony2 adds support for handling file uploads using one of the following Javascript libraries, or your own implementation.

Features included:

Build Status
Total Downloads

Documentation

The entry point of the documentation can be found in the file Resources/docs/index.md

Read the documentation for master

Upgrade Notes

  • Version v1.0.0 introduced some backward compatibility breaks. For a full list of changes, head to the dedicated pull request.
  • If you're using chunked uploads consider upgrading from v0.9.6 to v0.9.7. A critical issue was reported regarding the assembly of chunks. More information in ticket #21.
  • Error management changed in Version 0.9.6. You can now register an ErrorHandler per configured frontend. This comes bundled with some adjustments to the blueimp controller. More information is available in the documentation.
  • Event dispatching changed in Version 0.9.5. The dispatching is now handled in the upload* functions. So if you have created your own implementation, be sure to remove the call to the dispatchEvents function, otherwise it will be called twice. Furthermore no POST_UPLOAD event will be fired anymore after uploading a chunk. You can get more information on this topic in the documentation.
  • Event names changed in Version 0.9.3, update your EventListener accordingly.

License

This bundle is under the MIT license. See the complete license in the bundle:

Resources/meta/LICENSE

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker.

When reporting a bug, it may be a good idea to reproduce it in a basic project
built using the Symfony Standard Edition
to allow developers of the bundle to reproduce the issue by simply cloning it
and following some steps.

Copyright (c) 2013 1up GmbH

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
oneup_uploader:
chunks:
maxage: 604800
storage:
type: filesystem
filesystem: ~
directory: ~
stream_wrapper: ~
sync_buffer_size: 100K
prefix: chunks
load_distribution: true
orphanage:
maxage: 604800
directory: ~
twig: true
mappings: # Required

# Prototype
id:
frontend: ~ # Required
custom_frontend:
name: ~
class: ~
storage:
service: ~
type: filesystem
filesystem: ~
directory: ~
stream_wrapper: ~
sync_buffer_size: 100K
route_prefix:
allowed_mimetypes: []
disallowed_mimetypes: []
error_handler: ~

# Set max_size to -1 for gracefully downgrade this number to the systems max upload size.
max_size: 9223372036854775807
use_orphanage: false
enable_progress: false
enable_cancelation: false
namer: oneup_uploader.namer.uniqid
  • Merge pull request #162 from jbouzekri/max_size
    By sheeep, 1 year ago
  • Merge pull request #167 from giosh94mhz/allow_put_patch
    By sheeep, 1 year ago
  • Merge pull request #152 from Schyzophrenic/patch-1
    By sheeep, 1 year ago
  • Allow PUT and PATCH verbs for upload
    By giosh94mhz, 1 year ago
  • Do not use deprecated _method requirement
    By giosh94mhz, 1 year ago
  • Merge pull request #165 from Gladhon/master
    By sheeep, 1 year ago
  • Add Errorhandling to Dropzone
    By Gladhon, 1 year ago
  • process max size when string
    By jbouzekri, 1 year ago
  • Update LICENSE
    By bytehead, 1 year ago
  • [DOC] How to move specific files out of the orphanage
    By Schyzophrenic, 2 years ago
  • Self update composer before testing
    By sheeep, 2 years ago
  • Merge pull request #120 from umpirsky/patch-1
    By sheeep, 2 years ago
  • Merge pull request #121 from Nyholm/patch-1
    By sheeep, 2 years ago
  • Added PHP 5.6 and HHVM to travis.yml
    By Nyholm, 2 years ago
  • Update GaufretteFile.php
    By umpirsky, 2 years ago
  • Fix test suite by disabling the two failing tests.
    By sheeep, 2 years ago
  • Merge pull request #115 from mvrhov/filteredOrphanege
    By sheeep, 2 years ago
  • Allow uploading only of specific files
    By mvrhov, 2 years ago
  • Added Symfony2 version 2.5 to automated tests and dropped 2.2
    By sheeep, 2 years ago
  • Increased phpunit version to fix travis build.
    By sheeep, 2 years ago
  • Updated documented version to install
    By sheeep, 2 years ago
  • getFiles will return an array of SplFileInfo instead of File.
    By sheeep, 2 years ago
  • Added .idea to gitignore.
    By sheeep, 2 years ago
  • Merge pull request #112 from mvrhov/patch-1
    By sheeep, 2 years ago
  • catch non-existing directory exception.
    By mvrhov, 2 years ago
  • Merge pull request #105 from Schyzophrenic/master
    By sheeep, 2 years ago
  • Add Exception about the ValidationEvent
    By Schyzophrenic, 2 years ago
  • Removed a leading namespace separator.
    By sheeep, 2 years ago
  • Merge pull request #100 from ribeiropaulor/bugfix_aws3_adapter
    By sheeep, 2 years ago
  • - added USE statement;
    By ribeiropaulor, 2 years ago