No, sorry, maybe I didn't explain that well.
On the html form, I've for an <input type="file"> so the user will select the file they want to link to.
The PHP script takes that variable in using $_FILES['doc']['name'] which only saves the actual filename: document.doc.
What I'm wondering is if...