stof/StofDoctrineExtensionsBundle — Issue #80: FileUpload extension?
Author: zhil
Created: 2011-10-29 08:40:21+00:00
State: open

I am trying to implement file upload behavior based on cookbook
http://symfony.com/doc/current/cookbook/doctrine/file_uploads.html

Just an idea - it would be nice if somebody could integrate that code into extension.
Something like

/**
* @Gedmo\Upload
* @ORM\Column(name="screenshot",fileUploadField="screenshotFile")
*/
protected $screenshot;

fileUploadField - optional
By default, this extension should add public property screenshotFile to entity, and prePersist function in order to upload that file into needed location and set primary field with file name.

I dont have enough knowledges yet to do it myself :)