Upload script, originally designed for images.