Updated to allow file uploads