Skip to content

Commit b05665f

Browse files
committed
[cookbook][doctrine] Clarifying how you would practically use the file upload example.
I don't think there is any other way to specify the directory here and stay portable. For all practical purposes (which we want to cover), this seems like the example we should show.
1 parent 123515c commit b05665f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cookbook/doctrine/file_uploads.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ First, create a simple Doctrine Entity class to work with::
5555

5656
protected function getUploadRootDir()
5757
{
58-
return '/path/to/uploaded/documents';
58+
// the absolute directory path where uploaded documents should be saved
59+
return __DIR__.'/../../../../web/uploads/documents';
5960
}
6061
}
6162

0 commit comments

Comments
 (0)