Added file uploading mechanism.