protected override string GetQuery(CodeActivityContext context)
        {
            long organization = OrganizationID.Get(context);

            fileInfo = FileInfo.Get(context);
            if (fileInfo == null || string.IsNullOrWhiteSpace(fileInfo.Name))
            {
                var filePath = FilePath.Get(context);
                fileInfo = new FileInfo(Path.GetFullPath(filePath));
            }

            if (!fileInfo.Exists)
            {
                throw new ArgumentException("The file doesn't exist.");
            }

            contentType = MimeMapping.GetMimeMapping(fileInfo.Name);
            return(string.Format(CreatePresignedUrlQuery, organization, fileInfo.Name, contentType));
        }
        protected override string GetQuery(CodeActivityContext context)
        {
            var orgId = OrganizationID.Get(context);

            return(string.Format(GetOrganizationQuery, orgId));
        }