File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,11 @@ export class UrlBuilder {
5757
5858 private static getBaseUrl ( params : UrlBuilderParams , prefix : string ) : string {
5959 const cdnUrl = params . options ?. cdnUrl ?? BytescaleApiClientConfigUtils . defaultCdnUrl ;
60- const filePathEncoded = encodeURIComponent ( params . filePath ) . replace ( / % 2 F / g, "/" ) ;
60+ // To convert a Bytescale File Path into a Bytescale File URL:
61+ // a) Call encodeURIComponent() on the file path. (This allows file paths to contain ANY character.)
62+ // b) Replace all occurrences of "%2F" with "/". (Allows file paths to appear as hierarchical paths on the URL.)
63+ // c) Replace all occurrences of "!" with "%21". (Prevents file paths with "!" inside being treated as "query bangs".)
64+ const filePathEncoded = encodeURIComponent ( params . filePath ) . replace ( / % 2 F / g, "/" ) . replace ( / ! / g, "%21" ) ;
6165 return `${ cdnUrl } /${ params . accountId } /${ prefix } ${ filePathEncoded } ` ;
6266 }
6367
Original file line number Diff line number Diff line change @@ -1318,6 +1318,12 @@ export type JobSummaryJobDocsEnum = "https://www.bytescale.com/docs/job-api/GetJ
13181318 * @interface JobSummaryError
13191319 */
13201320export interface JobSummaryError {
1321+ /**
1322+ * Time the error occurred (UTC ISO 8601).
1323+ * @type {string }
1324+ * @memberof JobSummaryError
1325+ */
1326+ timestamp : string ;
13211327 /**
13221328 * Human-readable error message.
13231329 * @type {string }
@@ -1476,7 +1482,7 @@ export interface PickAzureReadOnlyStorageExcludeKeyofAzureReadOnlyStorageCredent
14761482 */
14771483 containerName : string ;
14781484 /**
1479- * Azure Storage BLOB name.
1485+ * Azure Storage BLOB name prefix .
14801486 * @type {string }
14811487 * @memberof PickAzureReadOnlyStorageExcludeKeyofAzureReadOnlyStorageCredentialsAzureStorage
14821488 */
You can’t perform that action at this time.
0 commit comments