-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
Type: FeatureA new feature to implementA new feature to implement
Description
Motivation / Problem
Some c2d algorithms need infos about the filetype for working propoerly.
Solution
Call the /fileinfo endpoint of the provider (https://docs.oceanprotocol.com/developers/old-infrastructure/provider/general-endpoints#file-info) and fill the algocustomdata automatically for every compute job with the fileInfo.
The idea is the split the filename and only pass the fileExtension.
Example fileinfo response:
[
{
"contentLength": "495331",
"contentType": "application/json",
"filename": "ptw-pt_1699348564105_901_copyof652.json",
"index": 0,
"type": "url",
"valid": true
}
]Expected algocustomdata structure:
{
fileinfo: {
contentLength: "495331",
contentType: "application/json",
fileExtension: "json"
}
...otherAlgoCustomData
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type: FeatureA new feature to implementA new feature to implement