Attaches an uploaded file to the given container with the given name.