Title: Retrieve document data
Last modified: August 21, 2016

---

# Retrieve document data

 *  [rociofatas](https://wordpress.org/support/users/rociofatas/)
 * (@rociofatas)
 * [13 years ago](https://wordpress.org/support/topic/retrieve-document-data/)
 * One of my db fields stores documents. Would like to retrieve them with a php 
   command and don’t know how to do it. All other fields types I can, but not with
   this one. How do I get to know where my files are stored or better yet, how do
   I actually fetch them?
 * [http://wordpress.org/extend/plugins/db-toolkit/](http://wordpress.org/extend/plugins/db-toolkit/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [David Cramer](https://wordpress.org/support/users/desertsnowman/)
 * (@desertsnowman)
 * [13 years ago](https://wordpress.org/support/topic/retrieve-document-data/#post-3693170)
 * HI there,
    documents are stored in the wp-content/uploads folder as with normal
   media uploads.
 *  Thread Starter [rociofatas](https://wordpress.org/support/users/rociofatas/)
 * (@rociofatas)
 * [13 years ago](https://wordpress.org/support/topic/retrieve-document-data/#post-3693221)
 * Hey!
 * Thanks so much; your plugin is a life saver.
 * I however can’t get to access the content using the following php hack:
 * echo $row->author.”
   “.$row->sfile.”“.”<img src='”.$row->cover.”‘ width=100 height
   =100 />“.$row->name.”“;
 * so all those variables are the data stored in my db. All the content displays
   with this code, including images; but not the files. I assume I just don’t know
   enough wp/php, but wondering if it could have to do with the plugin itself or
   if you would have some sort of hint around how to print the url of where my file
   is stored?
 *  Plugin Author [David Cramer](https://wordpress.org/support/users/desertsnowman/)
 * (@desertsnowman)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/retrieve-document-data/#post-3693319)
 * how are you trying to display the file? what kind of files are they?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Retrieve document data’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/db-toolkit_f3f3f3.svg)
 * [DB Toolkit](https://wordpress.org/plugins/db-toolkit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/db-toolkit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/db-toolkit/)
 * [Active Topics](https://wordpress.org/support/plugin/db-toolkit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/db-toolkit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/db-toolkit/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [David Cramer](https://wordpress.org/support/users/desertsnowman/)
 * Last activity: [12 years, 12 months ago](https://wordpress.org/support/topic/retrieve-document-data/#post-3693319)
 * Status: not resolved