Added support for uploading existing files