Instead of putting a direct link to a file, maybe try reading it to the client, like:
<pre>
if ($fp = fopen("$path/filename", "r")) {
while (!feof($fp)) {
echo fgets($fp, 4096);
};
// Check end of file?
if (feof($fp)) {
// update your database
}
}
</pre>
Don't know if this really works, never try it myself, heehee... 🙂