OneupUploaderBundle icon indicating copy to clipboard operation
OneupUploaderBundle copied to clipboard

Exist some way to attach data or headers to response?

Open rkmax opened this issue 11 years ago • 1 comments

example

class UploadListener {
    public function onUpload(PostPersistEvent $event)
    {
       //...
        $event->getResponse()->setContent(array('filename' => $dynamicName));
        //or
        $event->getResponse()->addHeaders(array('X-Filename' => $dynamicName))
    }
}

rkmax avatar Sep 14 '14 21:09 rkmax

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.

sheeep avatar Sep 17 '14 09:09 sheeep