CTOlet / yii2-attachments

Yii2 extension for uploading and attaching the files to the models
66 stars 57 forks source link

creates a URL to get a file path, to use images in PDF #47

Closed jeffwalsh closed 7 years ago

jeffwalsh commented 7 years ago

This fix is needed, as to use this file controller in MDPF, we simply need the file path for the image. A new route is created in FileController that is essentially the same as actionDownload, but it stops short of returning the object, and returns the file path instead.

jeffwalsh commented 7 years ago

Closed this - we figured out how to do it with $file->getPath() :)