in reply to Trouble Uploading Word Doc and JPG

don't you need binmode on your filehandles for this?

Also I think the '>>' in the 'open'-statements you use causes data to be appended to an existing file. If the file doesn't exist this seems no problem (your file will be created), but if the file exists you'll get 2 files glued together. Better to use '>' so the file will be created (and overwritten), and even better to check if a file already exists before you try to write it.