You need to implement the method getUploadDir.
When using this class in an entity certain life cycle callbacks should be called
prepareToUpload for @ORM\PrePersist() and @ORM\PreUpdate()
upload for @ORM\PostPersist() and @ORM\PostUpdate()
remove for @ORM\PostRemove()