OneupUploaderBundle
OneupUploaderBundle copied to clipboard
Exist some way to attach data or headers to response?
example
class UploadListener {
public function onUpload(PostPersistEvent $event)
{
//...
$event->getResponse()->setContent(array('filename' => $dynamicName));
//or
$event->getResponse()->addHeaders(array('X-Filename' => $dynamicName))
}
}
https://github.com/1up-lab/OneupUploaderBundle/issues/71#issuecomment-30835293
Not yet, I'm afraid. This was bad engineering in the first place and will be refactored in the next major version.