add support for resource uploading