Skip to content

Commit 5d3ff0d

Browse files
committed
Merge pull request #522 from symfony/file_upload_edit
[cookbook][doctrine] Clarifying how you would practically use the file up
2 parents 123515c + b05665f commit 5d3ff0d

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)