StofDoctrineExtensionsBundle icon indicating copy to clipboard operation
StofDoctrineExtensionsBundle copied to clipboard

FileUpload extension?

Open zhil opened this issue 14 years ago • 1 comments

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 :)

zhil avatar Oct 29 '11 08:10 zhil

Proposed the same to l3pp4rd/DoctrineExtensions https://github.com/l3pp4rd/DoctrineExtensions/issues/184#issuecomment-2564071

zhil avatar Oct 29 '11 09:10 zhil