I've made an CMS for a customer. One of the things he can do is upload a PDF file. We've tested this thoroughly and haven't encountered any bugs. However, he can't seem to upload anything at all. The file is never uploaded. His browser just keeps loading.

My client uses Firefox (not sure which version but I thought that wouldn't matter) and the PDF files he attempts to upload are around 5MB, nothing extreme.

Is there any reason why a browser doesn't finish it's request when uploading a file? I don't think the files are corrupt.

I don't think the problem lies in my script... but still worth posting:

```
if(!empty($_FILES['pdf'])) {
    $path = '../pdf/';
    $filename = $_FILES['pdf']['name'];

    if(!empty($assoc['pdf'])) {
        $oldfile = $path.$assoc['pdf'];

        if(file_exists($oldfile)) {
            unset($oldfile);
        }
    }

    $success = move_uploaded_file($_FILES['pdf']['tmp_name'], $path.$filename);
}

```

---

Edit: He has sent me the PDF he's trying to upload. Took about 10 seconds to upload... I'm providing him a link to do a speed test, lol.